File Type is Not Permitted for Security Reasons

Plugin SupportForumsHTML Import 2File Type is Not Permitted for Security Reasons

Tagged: 

This topic has 3 voices, contains 3 replies, and was last updated by  ceckak 134 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
October 12, 2011 at 1:27 pm #532

jeffvand

I am working on an import and all seems well except for it won’t import linked images. I replaced all internal links with full URL’s (some weren’t working). All the images are here:

http://web-dev.unc.edu/wp-content/reynolds-working/images/

When I import the images show up fine. Here is a page: http://reynolds.web-dev.unc.edu/links-3/.

But the pics were not imported, but all still link to the original source (which will go away).

When I did the import it the images all had a “Sorry, this file type is not permitted for security reasons.”

Here is a pic: http://vanswebsites.com/uploads/2011-10-12_1326.png

I am importing into a wordpress multi-site network running the 3.2.1, and 2.1 importer.

Oh, and I checked to make sure that the image file type (.jpg) was allowed in Network settings. It is.

October 14, 2011 at 7:37 pm #537

Stephanie

That’s very weird! JPGs should definitely be allowed. As a temporary workaround, you can comment out lines 525 and 526 of html-importer.php:


if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
return new WP_Error('wrong_file_type', __( 'Sorry, this file type is not permitted for security reasons.' ) );

I’ve downloaded a couple of the images in question, and I’ll do some tests with them to see if I can figure out what went wrong.

October 18, 2011 at 12:46 pm #538

jeffvand

thanks for looking at this Stephanie. Perhaps it is something in our setup I am missing. Let me know if you see anything.

Thanks!!

~Jeff

December 6, 2011 at 12:24 am #582

ceckak

FWIW, I just ran into something similar and eventually concluded it was due to spaces in the filenames. Doesn’t look like this was your problem (unless you’ve already addressed it), but I do seem some & characters in a few of the filenames that might be confusing matters.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.