[wp-trac] [WordPress Trac] #64010: wp_die() status code Media component updates (parent ticket: #64009)

WordPress Trac noreply at wordpress.org
Wed Oct 1 12:40:35 UTC 2025


#64010: wp_die() status code Media component updates (parent ticket: #64009)
--------------------------+------------------------------
 Reporter:  callumbw95    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by rollybueno):

 Tested the following using "browser uploader" method instead of "multi
 file uploader":
 - https://imgur.com/lfZSvwF
 - https://i.imgur.com/J6luFPO.png

 1. ❎ Invalid file. In this case, I'm using .svg.
         Before: [[Image(https://i.imgur.com/EFKyqt2.png)]]
         After:  [[Image(https://i.imgur.com/YJTWB9X.png)]] - still 500

 2. ❎ Missing file. I have to trick the "browser uploader" by removing the
 `disabled` attribute of the `Upload` button as well as the `required`
 attribute of the file field.
         Before: [[Image(https://i.imgur.com/9sS7Ny7.png)]]
         After: [[Image(https://i.imgur.com/NwLR6sL.png)]] - still 500


 === Additional Note
 1. Uploading invalid file through the "multi file uploader" does not
 trigger `wp_die()` - https://imgur.com/YJoBxNR
 2. I'm not quite sure how to test permission properly though..

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64010#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list