From 986daecbfea12bffd4eef5b601108639428c0e7a Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Wed, 10 Aug 2022 22:43:09 -0700 Subject: [PATCH] add upload response (#3428) * add upload response * fixing comments Co-authored-by: root --- weed/server/filer_ui/filer.html | 5 +++++ 1 file changed, 5 insertions(+) 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) {