aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/server/filer_ui/filer.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html
index 90e3be39e..217802dd9 100644
--- a/weed/server/filer_ui/filer.html
+++ b/weed/server/filer_ui/filer.html
@@ -288,6 +288,11 @@
function uploadFile(file, i) {
var url = window.location.href;
var xhr = new XMLHttpRequest();
+ xhr.onreadystatechange = function() {
+ if (xhr.readyState == XMLHttpRequest.DONE) {
+ location.reload();
+ }
+ }
var fileName = file.name;
xhr.upload.addEventListener('progress', function(e) {
if (e.lengthComputable) {