Compare commits

...

4 Commits

Author SHA1 Message Date
b346978ddc merge upstream 2025-11-11 22:57:27 +05:30
155811c47e add LICENSE
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2025-11-11 22:56:56 +05:30
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
3 changed files with 123 additions and 29 deletions

14
LICENSE Normal file
View File

@@ -0,0 +1,14 @@
Marvel Rivals License Revision 2
(c) Author, year
Permission to use, copy, distribute, sell, or modify the compiled binaries,
source code, and documentation (the "Software") is granted only to individuals
who currently hold a higher competitive matchmaking rank in Marvel Rivals
(NetEase / Marvel Games) than the copyright holder.
All others are expressly prohibited from using, copying, distributing, selling,
or modifying the Software in any form.
The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. The authors
are NOT LIABLE FOR ANY LOSS, DAMAGE, OR MISUSE arising from its use.

View File

@@ -2,6 +2,7 @@
* Yet Another Mid Ahh Filehost
adasdad
- 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 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>
<html>
<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>
Use curl to upload:
<br>
You can upload files directly or use <code>curl</code>:
</p>
<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>
<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>
</p>
<form method="post" enctype="multipart/form-data">
{{KEY_FIELD}}
<input type="file" name="file" multiple>
<br>
<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>