From ad08a52ab65855ccc1b1470be3cdea94b012608c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 9 Mar 2019 13:24:22 -0800 Subject: [PATCH] synchronously upload files fix https://github.com/chrislusf/seaweedfs/issues/807 --- weed/server/filer_ui/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)