[wp-trac] [WordPress Trac] #50188: Disable Media uploader if PHP file_uploads is disabled

WordPress Trac noreply at wordpress.org
Mon May 18 08:44:31 UTC 2020


#50188: Disable Media uploader if PHP file_uploads is disabled
-------------------------------------+------------------------------
 Reporter:  JavierCasares            |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Upload                   |     Version:
 Severity:  minor                    |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:
-------------------------------------+------------------------------

Comment (by JavierCasares):

 So, I've been thinking about the ticket and, we can do this for only the
 "file_upload" directive, but it could also be a good functionality, so for
 example, if we create a "define" option at the WP-Config like
 WP_DISABLE_UPLOADS (true, false) we could block the upload thing in all
 the system. I don't know, but could be useful if some installations cannot
 have uploads or there are no need for that.

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


More information about the wp-trac mailing list