This commit is contained in:
Boof 2023-01-31 09:56:16 +01:00 committed by GitHub
parent 2dad6d4d0f
commit 18ac27c30f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

11
tools/multiup/index.html Normal file
View File

@ -0,0 +1,11 @@
<head>
<script src="index.js"></script>
<title>Upload files to multiple hosts</title>
</head>
<body>
<form>
<input id="file" type="file">
<button type="submit">Submit</button>
</form>
<textarea id="output" rows="6" cols="80" readonly></textarea>
</body>

12
tools/multiup/index.js Normal file
View File

@ -0,0 +1,12 @@
function doupload() {
var file = document.getElementById("file")
const body = new FormData
body.append("files[]", "@48_circles.gif")
fetch("https://pomf.lain.la/upload.php", {
body,
headers: {
"Content-Type": "multipart/form-data"
}
})
}