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

WordPress Trac noreply at wordpress.org
Fri Mar 10 23:44:35 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):

 @eddiemcham, you can fix the issue for your site without installing an
 extra plugin by following @lukecavanagh's suggestion, only the type you
 insert needs to be the type that PHP ''thinks'' it is, not necessarily the
 objectively correct type (`font/woff`). To figure that out, you can adapt
 the quickie code snippet at
 https://core.trac.wordpress.org/ticket/39550#comment:135

 This workaround is only necessary in cases where your particular version
 of PHP believes a file to be of type `application/*`. I mention it in case
 you run into issues with any other file types, as most of the time when
 PHP gets the type wrong, it will think it is `application/something`.

 As @swissspidy mentioned, this is currently being tackled on a couple of
 different fronts, so should be largely resolved in the next release or
 two.

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


More information about the wp-trac mailing list