[wp-trac] [WordPress Trac] #46775: Cannot allow multiple MIME for same file extension

WordPress Trac noreply at wordpress.org
Wed Jul 1 11:45:26 UTC 2020


#46775: Cannot allow multiple MIME for same file extension
-------------------------+------------------------------
 Reporter:  thedanhealy  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Upload       |     Version:  5.1
 Severity:  major        |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by bobbingwide):

 Having debugged a problem with the File block (
 https://github.com/WordPress/gutenberg/issues/23510 ) I searched and found
 the same issue as reported here.

 My workaround was to use a different prefix for the mime type that some
 Windows browsers see.
 I added the following line in wp_get_mime_types()

 {{{
 'xzip'                           => 'application/x-zip-compressed',`
 }}}

 This resolved the problem for the File block.
 The change does not seems to affect media upload.

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


More information about the wp-trac mailing list