-
Notifications
You must be signed in to change notification settings - Fork 0
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 skip and retry option for failed file uploads #30
Conversation
Remove error throwing, because it is handled later.
Add promise parts together
Don't submit storage request as long as there are failed files.
Variable finished was false even when upload was complete. Set finish on true after the upload is complete and set editable on false after file browser view was changed.
Remove finishing storage request.
When delete request ist outdated (retry counts don't match), don't delete chunked files
If retryChunk is true, the retry counter will be increased on backend side.
File is removed at the end of the job.
Check for uploaded chunks is done in the controller.
File paths were compared instead to look for identical file names.
Show message when duplicates files are detected.
Previous check only contained size of selected files, but did not consider already used storage.
@mzur Currently, only the handleErrorResponse method is used. Should I add there also a retry button? |
No, just keep it like that. The user should be able to click submit again (right?). Also, they could reload the page and find the storage request still pending. Then they can click submit again, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to reproduce this bug. For me everything seems to work. Can you describe what you did? |
You are right. I pulled the recent changes and recompiled the assets. Now it works again. Maybe my biigle/core assets haven't been up to date... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost finished! Only one comment now. And maybe it's a good idea to add a second test case for a chunked file upload that is retried now. Finally, could you clarify the discussion about this.finished
above?
npm run prod
Closes #11.