-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove failed uploads is not working in block editor #9953
Comments
Allow me to summon @mzorz on this one as I'm sure Mario will have good context to add on this. |
This issue has been marked as stale because:
Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority (cc @designsimply). |
hi @mkevins Is this issue still valid? let me know :D thanks! |
Description
I encountered an issue with media blocks (video and image) after a failed upload. When I have a failed upload in a post, I am unable to "UPDATE" the post after that point, and "REMOVE FAILED UPLOADS" does not seem to work. If I "RETRY" the upload successfully, or "REMOVE" the media from the "Please tap for options" dialog, "UPDATE" resumes working normally. However, if I remove the block via the trash icon, I can no longer "UPDATE" the post, and I cannot "REMOVE" the failed uploads. This results in a condition where my local changes can never be uploaded.
Steps to reproduce the behavior
Expected behavior
The changes should save to the server.
Actual behavior
Saving the changes is prevented with the following dialog: "Some media uploads have failed. You can't save or publish your post in this state. Would you like to remove all failed media?" Options: { "CANCEL", "REMOVE FAILED UPLOADS"}.
Selecting "REMOVE FAILED UPLOADS" does not appear to have any effect.
Screencast
Originally encountered while testing video block:
Tested on Pixel 2 Emulator, Android 27, WPAndroid 654bf6d
Additional information
The
GutenbergEditorFragment
has a methodhasFailedMediaUploads
which returns true if the post still hasmFailedMediaIds
. This prevents the post from updating, and results inshowRemoveFailedUploadsDialog
being called instead. TheremoveAllFailedMediaUploads
method, however, does not remove anything. In examining the code, I noticed that theisUploadingMedia
method of the same class always returnsfalse
. This seems to suggest that the responsibility of tracking upload progress is not intended to be handled by this class. @hypest wdyt?The text was updated successfully, but these errors were encountered: