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

No access to FileReader.result within loadend callback #22

Closed michaelcrain closed 8 years ago

michaelcrain commented 8 years ago

When "readAsArraybuffer", in order to get access to the arraybuffer in "reader.result" I had to pass the FileReader instance as the 3rd argument to the "opts" callback on line 346.

michaelcrain commented 8 years ago

Solved: My oversight. The arraybuffer is attached to event.target, the first parameter passed to the onloadend callback.

bgrins commented 8 years ago

Alright, no problem