From 7886e831bb13a7e9bfd68d8ae3a4c4fb5d03e951 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 14 Jun 2019 00:58:19 +0300 Subject: [PATCH] Fix file uploading when lounge is proxied in a subfolder --- client/js/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/upload.js b/client/js/upload.js index 6a7af160..1eeac5e3 100644 --- a/client/js/upload.js +++ b/client/js/upload.js @@ -162,7 +162,7 @@ class Uploader { const formData = new FormData(); formData.append("file", file); - xhr.open("POST", `/uploads/new/${token}`); + xhr.open("POST", `uploads/new/${token}`); xhr.send(formData); }