fixes #113
This commit is contained in:
parent
9396b3e69d
commit
8dfb8727cd
1 changed files with 1 additions and 4 deletions
|
|
@ -61,10 +61,7 @@ proc uploadFile*(url: cstring, file: Blob, onprogress :proc(data: ProgressEvent)
|
|||
ajax.setRequestHeader(a, b)
|
||||
ajax.statechange proc() =
|
||||
if this.readyState == 4:
|
||||
if this.status == 200:
|
||||
contWrapper(this.status, this.responseText)
|
||||
else:
|
||||
contWrapper(this.status, this.responseText)
|
||||
contWrapper(this.status, this.responseText)
|
||||
ajax.upload.onprogress = onprogress
|
||||
ajax.send(formData.to(cstring))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue