Browse Source

synchronously upload files

fix https://github.com/chrislusf/seaweedfs/issues/807
pull/878/head
Chris Lu 6 years ago
parent
commit
ad08a52ab6
  1. 2
      weed/server/filer_ui/templates.go

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

Loading…
Cancel
Save