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

WordPress Trac noreply at wordpress.org
Wed Mar 22 12:56:15 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:7 lovelucy]:
 > @blobfolio  Related to #39550, I found another xls that cannot be
 uploaded to WordPress, which is tested with result MIME:
 `application/CDFV2-unknown`

 Awesome, thanks @lovelucy! It seems CDFV2 is another hardcoded non-MIME
 MIME living inside the `fileinfo.so` extension, only unlike `application
 /ms-office`, it gets variable bits tacked onto the end like "unknown" and
 "corrupt". I'll add a workaround of some sort to the #39963 patch.

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


More information about the wp-trac mailing list