[wp-trac] [WordPress Trac] #63561: The media upload button is not disabled when no image has been uploaded
WordPress Trac
noreply at wordpress.org
Sat Jun 28 09:05:12 UTC 2025
#63561: The media upload button is not disabled when no image has been uploaded
-------------------------------------+---------------------------------
Reporter: karinchristen | Owner: joedolson
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.9
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui, administration
-------------------------------------+---------------------------------
Comment (by rollybueno):
== Reproduction Report
=== Description
This report validates whether the issue described in the ticket can be
reproduced.
Specifically, when using the browser uploader in the Media Library (via
**Media** → **Add New** → **browser uploader**), the **Upload** button
remains active even if no file has been selected.
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Query Monitor 3.18.0
* Test Reports 1.2.0
* Transients Manager 2.0.7
=== Actual Results
1. ✅ Error condition occurs (reproduced).
- Navigated to `Media → Add New`.
- Switched to **browser uploader**.
- Clicked the **Upload** button without selecting a file.
- Result: Redirected to a `wp_die()` error page due to missing upload
file.
=== Additional Notes
- The **Upload** button is not disabled when no file is selected.
- Clicking it without selecting a file results in a server-side error
instead of being blocked on the client side.
- This could be confusing for users expecting a disabled button until a
file is chosen.
=== Supplemental Artifacts
**Classic browser uploader for single file**. You can see in this
screenshot on where you can find it.
[[Image(https://i.imgur.com/twboR58.png)]]
**The single file upload page**. You can see that the button is not
disable by default, or when the file filed is empty.
[[Image(https://i.imgur.com/cQ75Y5y.png)]]
**If you clicked that without file uploaded**, you get this old classic
wp_die().
[[Image(https://i.imgur.com/RUBzvn9.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63561#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list