[wp-trac] [WordPress Trac] #40101: Cannot upload WOFF files

WordPress Trac noreply at wordpress.org
Sat Mar 11 05:42:04 UTC 2017


#40101: Cannot upload WOFF files
--------------------------+--------------------
 Reporter:  eddiemcham    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7.4
Component:  Upload        |     Version:  4.7.3
 Severity:  blocker       |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by blobfolio):

 Replying to [comment:11 eddiemcham]:
 > Before I test this on our QA and production environments, I guess I
 should ask why the change, and is it likely to change back to `x-font-
 woff` or `font-woff`?

 It's actually PHP that is coming up with `application/octet-stream`, not
 WordPress. Unfortunately that particular function (part of the `fileinfo`
 extension), while helpful sometimes, is also really inconsistent from
 environment to environment (hence all the trouble people are having).

 If your production environments are identical to your staging setup, then
 they should be equally wrong in their assessment of what a WOFF file is,
 in which case the identical fix will work. If they're a little different,
 the general concept of the workaround is still good, you might just need
 to slug a different media type in there.

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


More information about the wp-trac mailing list