Add file upload

This commit is contained in:
2024-04-25 10:20:32 +02:00
parent 2f49e6aa8a
commit aa493a0b51
2 changed files with 2 additions and 2 deletions

View File

@@ -546,7 +546,7 @@ function uploadFile() {
formData.append('userfile', file);
let xhr = new XMLHttpRequest();
xhr.open('POST', '__URL__', true);
xhr.open('POST', '/upload', true);
xhr.onload = function () {
if (xhr.status === 200) {