Merge pull request #3258 from thelounge/xpaw/fix-subpath-upload

Fix file uploading when lounge is proxied in a subfolder
This commit is contained in:
Pavel Djundik 2019-06-14 10:45:54 +03:00 committed by GitHub
commit 01bc09d01e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}