[wp-trac] [WordPress Trac] #46078: Can't Import CSV's to Media Library - not permitted for security reasons

WordPress Trac noreply at wordpress.org
Wed Jan 23 12:09:05 UTC 2019


#46078: Can't Import CSV's to Media Library - not permitted for security reasons
--------------------------+------------------------------
 Reporter:  jonyfox       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.0.3
 Severity:  critical      |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by jonyfox):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 I think i've solved this, Please see the below from another post i've
 done:

 ''Hi,

 Upon importing a woocommerce csv file i get this message:

 Sorry, this file type is not permitted for security reasons.

 I think i know what causes this issue.

 Inside the woocommerce CSV there is HTML saved from the description boxes.
 if you remove all the html in csv document and save the file then
 wordpress will allow the file to import into wordpress.

 I’ve got a feeling that this is to do with wordpress’s new MIME security
 update where by it classes the HTML in the csv file as a security threat
 (I’m not 100% though).

 I’m just telling you guys in case you can fix this.

 Kind Regards,
 Jonathan''

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


More information about the wp-trac mailing list