diff --git a/tools/multiup/index.html b/tools/multiup/index.html new file mode 100644 index 0000000..4407440 --- /dev/null +++ b/tools/multiup/index.html @@ -0,0 +1,11 @@ + + + Upload files to multiple hosts + + +
+ + +
+ + \ No newline at end of file diff --git a/tools/multiup/index.js b/tools/multiup/index.js new file mode 100644 index 0000000..ea5cc0f --- /dev/null +++ b/tools/multiup/index.js @@ -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" + } + }) +}