mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
test
This commit is contained in:
parent
2dad6d4d0f
commit
18ac27c30f
11
tools/multiup/index.html
Normal file
11
tools/multiup/index.html
Normal 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
12
tools/multiup/index.js
Normal 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"
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user