[wp-trac] [WordPress Trac] #40175: Upload Validation / MIME Handling

WordPress Trac noreply at wordpress.org
Thu Feb 25 05:37:25 UTC 2021


#40175: Upload Validation / MIME Handling
-------------------------------------------------+-------------------------
 Reporter:  blobfolio                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  high                                 |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  4.7.3
 Severity:  major                                |  Resolution:
 Keywords:  has-unit-tests early needs-dev-note  |     Focuses:
                                                 |  administration
-------------------------------------------------+-------------------------

Comment (by blobfolio):

 Replying to [comment:83 quangthien27]:
 > "potx" is still not able to upload, as its mime has been changed to
 "application/vnd.openxmlformats-
 officedocument.presentationml.presentation", not "application/vnd
 .openxmlformats-officedocument.presentationml.template" as per in /wp-
 includes/functions.php, "wp_get_mime_types" function

 Office document extensions and media types do not have a one-to-one
 relationship. Some `potx` files will have the media type `application/vnd
 .openxmlformats-officedocument.presentationml.template`, others won't.

 There are workarounds for this in the [https://wordpress.org/plugins/blob-
 mimes/ Lord of the Files] plugin. If you install that, you should be able
 to upload `potx` again.

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


More information about the wp-trac mailing list