Skip to content

Commit

Permalink
Some tests were failing. The bugs have been fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
himazu committed May 2, 2014
1 parent 0234255 commit 9e9a04b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dropzone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,10 @@ class Dropzone extends Em
# Finally add the file
# Has to be last because some servers (eg: S3) expect the file to be the
# last parameter
pn = @options.paramName
pnGen = (n) -> if typeof pn is "function" then pn n else "#{pn}#{if @options.uploadMultiple then "[]" else ""}"
formData.append pnGen(i), files[i], files[i].name for i in [0..files.length-1]
for i in [0..files.length-1]
pn = @options.paramName
pnVal = if typeof pn is "function" then pn i else "#{pn}#{if @options.uploadMultiple then "[]" else ""}"
formData.append pnVal, files[i], files[i].name

xhr.send formData

Expand Down

0 comments on commit 9e9a04b

Please sign in to comment.