Break of functionality/theming of uploaded image files preview through file upload widget when one of them does not comply to the set requirements

Created on 25 September 2025, 13 days ago

Problem/Motivation

When uploading multiple image files, including the one which is not complying to requirements, through default core File upload/Image field widget the theming and widget functionality breaks - all the good images are uploaded (selected to upload on node save?), but it is not exactly understandable from usability standpoint if the files are uploaded or rejected, also draggable sorting breaks.

Steps to reproduce

1. Install Drupal 11.2.4 stable - the same problem on Oliveiro and Claro themes
2. Enable core File module, Image module. Media modules are disabled.
3. Create new "File" field, select images option (probably similar with other, but not tested), leave default for file extension: jpg, jpeg,webp,png,gif... set min resolution 300x300, max 10000x10000
4. Open add new content form
5a. "Browse", select (Windows computer file explorer) SEVERAL image files, for better view - more than 2, with at least one of them being in my example smaller than 300x300
5b. Use drag-n-drop on file upload area, with at least one of files being in my example smaller than 300x300
5c. Use the same as 5b, but select and drag-n-drop one file of the other extension than jpg, gif..., for example .lnk file from desktop.

The result is similar for 5a,5b,5c - if at least one of files is rejected during upload (pre-upload?) - the form breaks: "Browse" button position changes and drag-n-drop functionality changes.

Similar with core Inline Form Errors module enabled.

Screenshots attached.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

file.module

Created by

🇱🇹Lithuania playfulwolf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024