[wp-trac] [WordPress Trac] #40175: Upload Validation / MIME Handling

WordPress Trac noreply at wordpress.org
Wed Mar 22 13:37:56 UTC 2017


#40175: Upload Validation / MIME Handling
--------------------------+------------------------------
 Reporter:  blobfolio     |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.7.3
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by blobfolio):

 Replying to [comment:9 hivewebstudios]:
 > For what it is worth, our plugin https://wordpress.org/plugins/font-
 organizer/ is suffering heavily from this bug, and a lot of our users are
 reporting issues with uploading fonts to their WP.

 Yeah, unfortunately font files are particularly likely to be hit with this
 issue. Prior to IANA's designation of a `font/` type, many fell under the
 `application/` banner, and a lot of different versions of PHP will still
 see them that way.

 In your case, at least, there is a possible workaround. The upload
 validation code causing the trouble includes a filter; your plugin could
 hook into this and alter the response to "A-OK" for font files. Please see
 https://core.trac.wordpress.org/ticket/39550#comment:110, which worked for
 another author.

 > Also I truly hope I am not breaking any rules by posting this, I never
 had to deal with core issues before and we are currently testing our next
 major plugin release.

 No worries! It is helpful when users share their own experiences.

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


More information about the wp-trac mailing list