[wp-trac] [WordPress Trac] #45771: Woff uploading fails, even added to upload_mimes filter

WordPress Trac noreply at wordpress.org
Wed Dec 26 14:49:27 UTC 2018


#45771: Woff uploading fails, even added to upload_mimes filter
-----------------------------+------------------------------
 Reporter:  matthewdietsche  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  5.0.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by matthewdietsche):

 I believe this is due to the fact that PHP's fileinfo (maybe only on
 particular versions of PHP?), incorrectly returns the mime type of woff
 files as "application/octet-stream".  The way WordPress handles files with
 that mime type changed in 5.0.1 to ignore them unless they were one of a
 few, specific file types, regardless of the upload_mimes contents.

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


More information about the wp-trac mailing list