mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Re-add some lost comments
This commit is contained in:
parent
5c70ded54c
commit
ae26ecf34a
@ -869,6 +869,8 @@ function uploadFile() {
|
|||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
|
// Include path as query parameter since multipart form data doesn't make
|
||||||
|
// form fields available until after file upload completes
|
||||||
xhr.open('POST', '/upload?path=' + encodeURIComponent(currentPath), true);
|
xhr.open('POST', '/upload?path=' + encodeURIComponent(currentPath), true);
|
||||||
|
|
||||||
progressFill.style.width = '0%';
|
progressFill.style.width = '0%';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user