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

WordPress Trac noreply at wordpress.org
Tue Mar 14 20:45:30 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 eddiemcham):

 Hello again,

 Afraid we're back to square one, but I think I know why now.

 I modified our ''functions.php'' to redefine WOFFs as '''application/font-
 woff''' and confirmed I could upload WOFFs and that they render fine. I
 did have to delete and re-upload existing WOFF files from the Media
 Library so Wordpress would reset their MIME types from '''x-font-woff'''
 to '''font-woff'''.

 However, my coworker still gets the security - cannot upload this file
 type message. She ''can'' upload other types, like PNGs. So the question
 remains: '''''Why can I upload WOFFs but she can't???'''''

 Then I realized I'm the multisite ''super-admin'', and she's only the
 admin to her particular sites. So as a test, I made her a multisite super-
 admin.

 Now she can upload WOFFs, but Wordpress tags them as '''application/octet-
 stream''', and her pages throw errors because they're now looking for
 '''font-woff''' attachments due to the earlier change I made to
 ''functions.php''.

 So it appears something else has changed recently in WP that only allows
 multisite super-admins to upload WOFFs.

 I can't make her and everyone else on our team super-admins. So now what
 do I do?

 ~ thx, Eddie

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


More information about the wp-trac mailing list