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

WordPress Trac noreply at wordpress.org
Fri Mar 10 16:52:05 UTC 2017


#39550: Some Non-image files fail to upload after 4.7.1
---------------------------+------------------------
 Reporter:  greatislander  |       Owner:  joemcgill
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.7.3
Component:  Upload         |     Version:  4.7.1
 Severity:  critical       |  Resolution:  fixed
 Keywords:  fixed-major    |     Focuses:
---------------------------+------------------------

Comment (by blobfolio):

 Replying to [comment:149 blobfolio]:
 > Now to figure out why... haha.

 Apparently "magic" info for MS Office documents is hardcoded in the
 fileinfo.so extension. If the magic header/number doesn't match the
 expected, the generic `application/ms-office` type is returned instead of
 the more specific type matching the file extension. Curiouser and
 curiouser.

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


More information about the wp-trac mailing list