 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.
|
 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.
|
 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
|
 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.
|