mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-07 04:27:49 +01:00
synchronously upload files
fix https://github.com/chrislusf/seaweedfs/issues/807
This commit is contained in:
1 parent
4773497d2c
commit
ad08a52ab6
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user