[wp-trac] [WordPress Trac] #50188: Disable Media uploader if PHP file_uploads is disabled
WordPress Trac
noreply at wordpress.org
Sat May 16 19:32:37 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 | Keywords: 2nd-opinion
Focuses: |
---------------------------+-----------------------------
Based on ticket #50038, if the PHP configuration is {{{file_uploads =
Off}}} we should disable the Media upload.
Actually, when you upload a file and the file_uploads is disabled,
WordPress uploads the file with a progress bar and, at the end, it gives
an error because is disabled.
This should affect the Media upload, probably it should tell something
like "You can't upload a file, please check the Site Health for more
information" (or something like that) but also, in any file upload (like
the Image / Video / Audio on Gutenberg) should allow to pick from the
media but not show the upload button, also the plugin / theme upload.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50188>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list