1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-02 16:50:25 +02:00

synchronously upload files

fix https://github.com/chrislusf/seaweedfs/issues/807
This commit is contained in:
Chris Lu 2019-03-09 13:24:22 -08:00
parent 4773497d2c
commit ad08a52ab6

View file

@ -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)