[wp-trac] [WordPress Trac] #43861: Administrator cannot upload .cpp file to mediafiles
WordPress Trac
noreply at wordpress.org
Wed Apr 25 19:30:27 UTC 2018
#43861: Administrator cannot upload .cpp file to mediafiles
--------------------------+----------------------
Reporter: acbaile | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by desrosj):
* status: new => closed
* version: 4.9.5 =>
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hi @acbaile, thanks for the ticket!
`.cpp` files are not in the list of file types that WordPress allows to be
uploaded by default.
There is no setting to enable this, but it could be allowed using the
`mime_types` filter
(https://core.trac.wordpress.org/browser/tags/4.9.5/src/wp-
includes/functions.php#L2413).
Make sure you give proper consideration to the file type you are
whitelisting, and who you are allowing to upload.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43861#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list