Compare commits
4 Commits
master
...
b346978ddc
| Author | SHA1 | Date | |
|---|---|---|---|
| b346978ddc | |||
|
155811c47e
|
|||
| ce14336ad2 | |||
| 36d5fd24bc |
14
LICENSE
Normal file
14
LICENSE
Normal 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.
|
||||||
|
|
||||||
@@ -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.
|
||||||
|
|||||||
103
src/index.html
103
src/index.html
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user