[wp-trac] [WordPress Trac] #64305: Regression: Hidden async-upload input marked required in WP 6.9 RC3 prevents post publish
WordPress Trac
noreply at wordpress.org
Thu Nov 27 09:02:28 UTC 2025
#64305: Regression: Hidden async-upload input marked required in WP 6.9 RC3
prevents post publish
-------------------------------------+-------------------------------------
Reporter: yagniksangani | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Posts, Post Types | Version: trunk
Severity: major | Resolution:
Keywords: has-patch reporter- | Focuses: ui, accessibility,
feedback | administration
-------------------------------------+-------------------------------------
Comment (by wildworks):
Another intermediate solution is to simply remove the `required` attribute
from the input element, so that:
=== **Case 1: When the multi-file uploader is enabled**
The media uploader should continue to work as before in any environment,
including the Envira Gallery plugin.
=== **Case 2: If the browser uploader is enabled and your browser has JS
enabled**
If no file is attached, [https://github.com/WordPress/wordpress-
develop/blob/6b7adc0159731f2dc23719d52b1add89d1cd1703/src/js/_enqueues/admin/common.js#L1515-L1520
the JS will disable the upload button], so the form will not be submitted.
=== **Case 3: If the browser uploader is enabled and your browser has JS
disabled**
In this case, the form will be submitted without attaching a file, but
validation will be performed on the server side, and the message "No file
was uploaded." will be displayed. Since cases where JS is disabled are
rare these days, I think this case is acceptable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64305#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list