From cc5587319b411fc6896f18c8d174d6034f4ee5e5 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 23 Jan 2025 12:12:59 +0100 Subject: Make upload endpoint static --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index c487165..9264991 100644 --- a/templates/index.html +++ b/templates/index.html @@ -36,7 +36,7 @@ resourceId = xhr.getResponseHeader("X-Resource-ID"); } } - xhr.open("POST", "/" + f.name, true); + xhr.open("POST", "/upload", true); xhr.setRequestHeader("X-Upload-Token", token) xhr.send(f) } -- cgit v1.2.3