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:
commit
01bc09d01e
@ -162,7 +162,7 @@ class Uploader {
|
|||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
xhr.open("POST", `/uploads/new/${token}`);
|
xhr.open("POST", `uploads/new/${token}`);
|
||||||
xhr.send(formData);
|
xhr.send(formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user