diff options
| author | Eric Yang <lanqingy@usc.edu> | 2022-08-10 22:43:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 22:43:09 -0700 |
| commit | 986daecbfea12bffd4eef5b601108639428c0e7a (patch) | |
| tree | 6c1b468d7d206aa1d4c8a682a3cfaa6fbf421aaa | |
| parent | ae93c966d9d20e299a24c300721f65065d77c8ea (diff) | |
| download | seaweedfs-986daecbfea12bffd4eef5b601108639428c0e7a.tar.xz seaweedfs-986daecbfea12bffd4eef5b601108639428c0e7a.zip | |
add upload response (#3428)
* add upload response
* fixing comments
Co-authored-by: root <root@HQ-10MSTD3EY.roblox.local>
| -rw-r--r-- | weed/server/filer_ui/filer.html | 5 |
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) { |
