Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload event doesn't work #165

Open
ghost opened this issue Aug 4, 2014 · 1 comment
Open

Upload event doesn't work #165

ghost opened this issue Aug 4, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 4, 2014

Upload must start after drop event, but it doesn't.
I changed the code

reader.onloadend = !opts.beforeSend ? send : function (e) {
opts.beforeSend(files[fileIndex], fileIndex, function () { send(e); });
};

to this one

reader.onloadend = !opts.beforeSend ? send : function (e) {
opts.beforeSend(files[fileIndex], fileIndex, function () { send(e); });
send(e);
};

and it works for me.
Please check this moment, and if there is more efficient solution, do and commit it please. Thank you.

@mkenran
Copy link

mkenran commented Feb 11, 2015

You must call done(); in your custom beforeSend hook.
See the comments in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant