-
Notifications
You must be signed in to change notification settings - Fork 4.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
Avoid race conditions between media upload and autosave #5936
Comments
Referencing issue #10158 which I think could be a report of this problem. The user reported the following:
|
A more recent approach to save locking (mentioned in the original comment) can be found at #10649, which is now merged. |
What's the status of this? |
@noisysocks looks unresolved. Seems as though the work in #10649 could be used in media blocks to fix the issue though. |
Is this issue still valid? |
I think so @paaljoachim - if the post is autosaved while media is in the process of being uploaded, the autosave will contain "corrupted" images that don't work correctly. An ideal solution here would be to prevent autosaving until all uploads have completed. |
This should be fixed by #41120 |
#41120 locks autosaving during uploads, but isn't a complete solution (see comment on PR) |
Going to close this one as autosaves and saves can't persist local urls anymore. The remaining work is being tracked in #5936 (blocking saving or triggered unsaved changes) |
Related: #4090
An autosave should not take place if there are pending uploads, otherwise the transient media information may be serialized permanently to the post. As in #4090, this was explored as a way to postpone autosave until after blockers have been resolved. This could also be tied into a generalized API for requirements for saves to take place (publish blocking, and related informative UX).
The text was updated successfully, but these errors were encountered: