Add file upload
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user