mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 07:00:54 +03:00
updated receiving end
This commit is contained in:
@@ -75,7 +75,6 @@ class FileSender extends EventEmitter {
|
||||
fd.append('data', blob, file.name);
|
||||
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open('post', '/upload/' + fileId, true);
|
||||
|
||||
xhr.upload.addEventListener('progress', e => {
|
||||
if (e.lengthComputable) {
|
||||
@@ -93,7 +92,8 @@ class FileSender extends EventEmitter {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
xhr.open('post', '/upload/' + fileId, true);
|
||||
xhr.send(fd);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user