When using an image field, and uploading an image which exceeds PHP's upload size limits, and the error message "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (4 MB) that this server supports." is returned, there's an unpleasant side effect, which is that the field widget disappears from the form.

User is forced to reload the page and start over.

The widget doesn't disappear under other error conditions after using the "Upload" button, so, this particular error condition shouldn't yield this result either.

Comments

beanluc’s picture

Component: ajax system » file.module
Liam Morland’s picture

sorinb’s picture

Issue summary: View changes

@Liam - re-open the issue while your action relates to D8 and not D7 originally stated by author

sorinb’s picture

Status: Closed (duplicate) » Needs work
pfrenssen’s picture

Status: Needs work » Closed (duplicate)

Closing as duplicate of #1489692: Incorrect handling of file upload limit exceeded - file widget disappears - in that issue this bug will be fixed for both D8 and D7.