[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1

WordPress Trac noreply at wordpress.org
Fri Jan 13 07:31:41 UTC 2017


#39550: Some Non-image files fail to upload after 4.7.1
---------------------------+------------------------
 Reporter:  greatislander  |       Owner:  joemcgill
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  4.7.2
Component:  Upload         |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------

Comment (by mensmaximus):

 Replying to [comment:28 AlexeyS_AS]:
 > The same problem with *.'''rar'''

 Can you check what mime type the *.rar file returns? wp_get_mime_types()
 returns 'application/rar'. According to wikipedia rar files use either
 'application/x-rar-compressed' or 'application/octet-stream'. Imho
 'application/octet-stream' is misused to much and should be used for real
 binaries (executable files) only (e.g. bin, exe or dll).

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


More information about the wp-trac mailing list