added main script + html
This commit is contained in:
49
landing.html
Normal file
49
landing.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{name}</title>
|
||||
</head>
|
||||
<body>
|
||||
<pre style="font-size: 1.5em;">
|
||||
{name} File Upload and URL Shortener
|
||||
|
||||
Welcome to the {name} file upload and URL shortening service.
|
||||
This service allows you to easily upload files or shorten URLs for quick access.
|
||||
Files are stored for {expiration_days} days, and URLs are shortened for convenient sharing.
|
||||
|
||||
Usage:
|
||||
|
||||
Upload a file:
|
||||
curl -F file=@yourfile.ext {base_url}/
|
||||
|
||||
Shorten a URL:
|
||||
curl -d "url=https://example.com" {base_url}/shorten
|
||||
|
||||
Details:
|
||||
|
||||
Files uploaded to this service are stored for {expiration_days} days or until they are automatically cleaned up.
|
||||
The maximum file size is {max_file_size}MB.
|
||||
URLs shortened with this service will redirect to the original URL for the same period.
|
||||
|
||||
Examples:
|
||||
|
||||
File upload:
|
||||
curl -F file=@document.pdf {base_url}/
|
||||
Response:
|
||||
{base_url}/abcdef
|
||||
|
||||
URL shortening:
|
||||
curl -d "url=https://example.com" {base_url}/shorten
|
||||
Response:
|
||||
{base_url}/ghijkl
|
||||
|
||||
Disclaimer:
|
||||
|
||||
This service is provided as-is with no guarantees.
|
||||
Uploaded files and shortened URLs are not private and can be accessed by anyone with the link.
|
||||
Use at your own risk.
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user