summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2025-01-23 12:12:59 +0100
committerJulian Hurst <julian.hurst@digdash.com>2025-01-23 12:12:59 +0100
commitcc5587319b411fc6896f18c8d174d6034f4ee5e5 (patch)
tree0ef4c194c6f12e615aaf0b1f38a22d53c83cb881 /templates
parentfccb6c6a78aaa197ad21a81df49a33882b942cbf (diff)
downloadbox-cc5587319b411fc6896f18c8d174d6034f4ee5e5.tar.gz
Make upload endpoint static
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
1 files changed, 1 insertions, 1 deletions
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)
}