feat: add brainrot on upload page

This commit is contained in:
2025-11-10 18:40:42 +05:30
parent 36d5fd24bc
commit ce14336ad2

View File

@@ -1,31 +1,110 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{TITLE}}</title> <title>{{TITLE}}</title>
<style>
body {
font-family: system-ui, sans-serif;
background: #fafafa;
color: #222;
margin: 2rem auto;
max-width: 800px;
padding: 1.5rem;
line-height: 1.6;
}
h1 {
color: #111;
font-size: 2rem;
margin-bottom: 1rem;
}
code {
background: #eee;
padding: 0.3rem 0.5rem;
border-radius: 4px;
display: block;
margin: 0.5rem 0;
white-space: pre-wrap;
}
form {
margin-top: 1.5rem;
padding: 1rem;
background: #fff;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
button {
margin-top: 1rem;
background: #007bff;
color: #fff;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background: #0056b3;
}
iframe {
display: block;
margin: 2rem auto;
max-width: 100%;
border-radius: 8px;
}
#progress-container {
margin-top: 1rem;
}
</style>
</head> </head>
<body> <body>
<h1>{{TITLE}}</h1> <h1>{{TITLE}}</h1>
<p> <p>
Use curl to upload: You can upload files directly or use <code>curl</code>:
<br> </p>
<code> <code>
curl -F file=@"[file]" {{USER_URL}} curl -F file=@"[file]" {{USER_URL}}
</code> </code>
<br>
<br> <p>
If key is enabled then a field "key" will be required. If key authentication is enabled, include a <strong>"key"</strong> field before the file(s):
<br> </p>
Make sure the key is the first field in the multipart before any files.
<br>
<code> <code>
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}} curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}}
</code> </code>
</p>
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
{{KEY_FIELD}} {{KEY_FIELD}}
<input type="file" name="file" multiple> <input type="file" name="file" multiple />
<br> <br />
<button type="submit">Upload</button> <button type="submit">Upload</button>
</form> </form>
<div id="progress-container"></div> <div id="progress-container"></div>
<!-- 🎥 Embedded YouTube video -->
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/lgox5KTyzdc?si=nPLAWSf0cx_tjVNH"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
></iframe>
</body>
</html> </html>