Skip to content

Commit

Permalink
Assign timeout properly
Browse files Browse the repository at this point in the history
  • Loading branch information
manu7691 authored Aug 3, 2016
1 parent b561619 commit a8c127a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropzone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1133,11 +1133,11 @@ class Dropzone extends Emitter

uploadFiles: (files) ->
xhr = new XMLHttpRequest()

xhr.timeout = resolveOption @options.timeout, files

# Put the xhr object in the file objects to be able to reference it later.
file.xhr = xhr for file in files

xhr.timeout = resolveOption @options.timeout, files
method = resolveOption @options.method, files
url = resolveOption @options.url, files
xhr.open method, url, true
Expand Down

0 comments on commit a8c127a

Please sign in to comment.