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

Add an event that indicates that all upload attempts are complete #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ilyakatz
Copy link
Contributor

@ilyakatz ilyakatz commented Feb 1, 2016

Use case:

  • User started uploading 2 files
  • One of the files uploaded successfully
  • The other upload fails (eg. file size limit exceeded)

With current implementation, s3_upload_failed event is fired but not s3_uploads_complete. So there is no way to know that all attempts to upload have succeeded.

This PR adds s3_uploads_done event that triggers no matter what happened - whether all uploads were succeeded or if they were failures (similar to jqXHR.always)

@mcfiredrill
Copy link
Collaborator

Seems reasonable. Any thoughts @waynehoover ? Sorry if you are busy....

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

Successfully merging this pull request may close these issues.

2 participants