[wp-trac] [WordPress Trac] #54433: ALLOW_UNFILTERED_UPLOADS does not work anymore

WordPress Trac noreply at wordpress.org
Wed Nov 30 20:15:35 UTC 2022


#54433: ALLOW_UNFILTERED_UPLOADS does not work anymore
--------------------------+------------------------------
 Reporter:  mssd19        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.8.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by sabernhardt):

 Hi and thanks for the report!

 You apparently found a way around this (maybe the plugin mentioned in
 [https://wordpress.org/support/topic/allow_unfiltered_uploads-does-not-
 work/ your support topic]).

 I found a discrepancy between upload locations. I tried this in a single-
 site WordPress 6.1.1 installation just with the constant in `wp-config`,
 with and without the `upload_mimes` filter in a must-use plugin (not the
 theme). I was able to upload an EXE file and your `ADFRsuite_Linux-
 x86_64_1.0_install` file when I went to the "Add New" page (in the side
 menu or clicking the "Add New" link at the top in List mode).

 However, the inline uploader—above the media thumbnails in Grid
 mode—blocked the Linux installation file as an unsupported type, either
 with or without the filter. Using the `upload_mimes` filter made it accept
 the EXE file.

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


More information about the wp-trac mailing list