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>
<html>
<head>
<title>{{TITLE}}</title>
</head>
<body>
<h1>{{TITLE}}</h1>
<p>
Use curl to upload:
<br>
<code>
curl -F file=@"[file]" {{USER_URL}}
</code>
<br>
<br>
If key is enabled then a field "key" will be required.
<br>
Make sure the key is the first field in the multipart before any files.
<br>
<code>
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}}
</code>
</p>
<form method="post" enctype="multipart/form-data">
{{KEY_FIELD}}
<input type="file" name="file" multiple>
<br>
<button type="submit">Upload</button>
</form>
<div id="progress-container"></div>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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>
<body>
<h1>{{TITLE}}</h1>
<p>
You can upload files directly or use <code>curl</code>:
</p>
<code>
curl -F file=@"[file]" {{USER_URL}}
</code>
<p>
If key authentication is enabled, include a <strong>"key"</strong> field before the file(s):
</p>
<code>
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}}
</code>
<form method="post" enctype="multipart/form-data">
{{KEY_FIELD}}
<input type="file" name="file" multiple />
<br />
<button type="submit">Upload</button>
</form>
<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>