Browse Source

add upload response (#3428)

* add upload response

* fixing comments

Co-authored-by: root <root@HQ-10MSTD3EY.roblox.local>
pull/3431/head
Eric Yang 2 years ago
committed by GitHub
parent
commit
986daecbfe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      weed/server/filer_ui/filer.html

5
weed/server/filer_ui/filer.html

@ -288,6 +288,11 @@
function uploadFile(file, i) { function uploadFile(file, i) {
var url = window.location.href; var url = window.location.href;
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE) {
location.reload();
}
}
var fileName = file.name; var fileName = file.name;
xhr.upload.addEventListener('progress', function(e) { xhr.upload.addEventListener('progress', function(e) {
if (e.lengthComputable) { if (e.lengthComputable) {

Loading…
Cancel
Save