You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
When I read from the input file the first time, everything is correct, but when the file is changed and I read again, the load event will be triggered 2 times, when I change the file again, it's getting triggered 3 times, and so on... This is obviously wrong, the real Filereader object doesn't behaves like this.
I didn't go further in my investigation since it fixed my issue, I'm not sure though wether the issue is in this library or on the underlying swfObject it uses.
thanks @bamarni! I'm trying to remove all dependencies on jquery from this plugin and ended up rewriting an implementation myself. I think what I'm going to do is refactor it to only support one file handler at a time. It seems that the reader result comes in multiple times, it ends up triggering load events for all file handlers ever registered. This works for my case since I only care about people uploading one file at a time.
Activity
bamarni commentedon Feb 11, 2013
ping @Jahdrien
itsmattking commentedon Mar 7, 2013
Occurs for me as well. Would love a fix.
bamarni commentedon Mar 7, 2013
@MattKing17 : here is the dirty hack I've done for now (bamarni@74546ba).
I didn't go further in my investigation since it fixed my issue, I'm not sure though wether the issue is in this library or on the underlying swfObject it uses.
itsmattking commentedon Mar 7, 2013
thanks @bamarni! I'm trying to remove all dependencies on jquery from this plugin and ended up rewriting an implementation myself. I think what I'm going to do is refactor it to only support one file handler at a time. It seems that the reader result comes in multiple times, it ends up triggering load events for all file handlers ever registered. This works for my case since I only care about people uploading one file at a time.
jtherrell commentedon Jul 30, 2013
ping @Jahdrien again.
encore1908 commentedon Apr 9, 2014
ping @Jahdrien