Skip to content

Complete errored uploads and release form loading refs - #4465

Closed
lukaszsamson wants to merge 1 commit into
phoenixframework:mainfrom
lukaszsamson:ls-errored-upload
Closed

lukaszsamson wants to merge 1 commit into
phoenixframework:mainfrom
lukaszsamson:ls-errored-upload

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

An errored upload entry would never complete the uploader. EntryUploader.error() pushes error progress but never calls this._onDone() while also removing the PHX_LIVE_FILE_UPDATED listener. This means a locked form with no retry.
This PR addresses this by tracking failures in this._isErrored and calling this._onDone() plus fail fast in uploadFiles when any of the uploader.entries() fails

@SteffenDE

Copy link
Copy Markdown
Member

Thank you!

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