Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
beanluc CreditAttribution: beanluc commentedComment #2
Liam MorlandDuplicate of #1489692: Incorrect handling of file upload limit exceeded - file widget disappears.
Comment #3
sorinb CreditAttribution: sorinb as a volunteer commented@Liam - re-open the issue while your action relates to D8 and not D7 originally stated by author
Comment #4
sorinb CreditAttribution: sorinb as a volunteer commentedComment #5
pfrenssenClosing 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.