aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-03-09 13:24:22 -0800
committerChris Lu <chris.lu@gmail.com>2019-03-09 13:24:22 -0800
commitad08a52ab65855ccc1b1470be3cdea94b012608c (patch)
tree933f71791cf1a59e99f10738e8f6d866bdf2f4d0
parent4773497d2c2a96990cd68e841675405db26353cb (diff)
downloadseaweedfs-ad08a52ab65855ccc1b1470be3cdea94b012608c.tar.xz
seaweedfs-ad08a52ab65855ccc1b1470be3cdea94b012608c.zip
synchronously upload files
fix https://github.com/chrislusf/seaweedfs/issues/807
-rw-r--r--weed/server/filer_ui/templates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/filer_ui/templates.go b/weed/server/filer_ui/templates.go
index e31685ea0..884798936 100644
--- a/weed/server/filer_ui/templates.go
+++ b/weed/server/filer_ui/templates.go
@@ -162,7 +162,7 @@ function uploadFile(file, i) {
var url = window.location.href
var xhr = new XMLHttpRequest()
var formData = new FormData()
- xhr.open('POST', url, true)
+ xhr.open('POST', url, false)
formData.append('file', file)
xhr.send(formData)