From 18ac27c30f4c0f23d4286a6c648370565828647d Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Tue, 31 Jan 2023 09:56:16 +0100 Subject: [PATCH] test --- tools/multiup/index.html | 11 +++++++++++ tools/multiup/index.js | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tools/multiup/index.html create mode 100644 tools/multiup/index.js 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" + } + }) +}