Skip to content

Commit d3111c7

Browse files
1 parent c8097b5 commit d3111c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3file/static/s3file/js/s3file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
file.loaded = 0
2222
return new Promise(function (resolve, reject) {
2323
var xhr = new window.XMLHttpRequest()
24-
xhr.open(method, url)
2524

2625
xhr.onload = function () {
2726
if (xhr.status === 201) {
@@ -62,6 +61,7 @@
6261
reject(xhr.statusText)
6362
}
6463

64+
xhr.open(method, url)
6565
xhr.send(data)
6666
})
6767
}

0 commit comments

Comments
 (0)