yamaf: initial commit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-11-08 21:45:18 +05:30
commit a805f58243
10 changed files with 1376 additions and 0 deletions

31
src/index.html Normal file
View File

@@ -0,0 +1,31 @@
<!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>