Compare commits

...

2 Commits

Author SHA1 Message Date
ce14336ad2 feat: add brainrot on upload page 2025-11-10 18:40:42 +05:30
36d5fd24bc alo 2025-11-10 18:37:57 +05:30
2 changed files with 109 additions and 29 deletions

View File

@@ -2,6 +2,7 @@
* Yet Another Mid Ahh Filehost * Yet Another Mid Ahh Filehost
adasdad
- YAMAF is a yet another mid ahh filehost for personal use. - YAMAF is a yet another mid ahh filehost for personal use.
- It is extremely simple and minimal and might break under niche circumstances like uploading many huge files. - It is extremely simple and minimal and might break under niche circumstances like uploading many huge files.
- It uses axum unlike its predecessors[fn:1][fn:2], both of which were written in rust some time ago now. - It uses axum unlike its predecessors[fn:1][fn:2], both of which were written in rust some time ago now.

View File

@@ -1,31 +1,110 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<title>{{TITLE}}</title> <meta charset="UTF-8" />
</head> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<body> <title>{{TITLE}}</title>
<h1>{{TITLE}}</h1> <style>
<p> body {
Use curl to upload: font-family: system-ui, sans-serif;
<br> background: #fafafa;
<code> color: #222;
curl -F file=@"[file]" {{USER_URL}} margin: 2rem auto;
</code> max-width: 800px;
<br> padding: 1.5rem;
<br> line-height: 1.6;
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. h1 {
<br> color: #111;
<code> font-size: 2rem;
curl -F "key=[key]" -F file=@"[file]" -F file=@"[file2]" {{USER_URL}} margin-bottom: 1rem;
</code> }
</p>
<form method="post" enctype="multipart/form-data"> code {
{{KEY_FIELD}} background: #eee;
<input type="file" name="file" multiple> padding: 0.3rem 0.5rem;
<br> border-radius: 4px;
<button type="submit">Upload</button> display: block;
</form> margin: 0.5rem 0;
<div id="progress-container"></div> 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> </html>