bgrins / filereader.js

A lightweight wrapper for the JavaScript FileReader interface
http://bgrins.github.com/filereader.js/
MIT License
413 stars 86 forks source link

Correction for fileuploader.js #6

Closed wdahab closed 13 years ago

wdahab commented 13 years ago

Hi Brian,

First off, thanks for offering up this code. Saved me a bunch of time. I noticed what I think is a slight error in fileuploader.js. In doUpload(), the line: for (var d in opts.data) { fd.append(d, opts[d]);} Seems like it should be: for (var d in opts.data) { fd.append(d, opts.data[d]);}

At least that took care of the issue I was having, along with a few site-specific edits so that the relevant data was passed along.

Again, thanks for the code! -Bill

bgrins commented 13 years ago

Thanks Bill, Good catch, here is the commit: https://github.com/bgrins/filereader.js/commit/a04b2b5c55da2533b5ba0f13db7060abf59a7442