mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add upload response (#3428)
* add upload response * fixing comments Co-authored-by: root <root@HQ-10MSTD3EY.roblox.local>
This commit is contained in:
parent
ae93c966d9
commit
986daecbfe
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue