I've written a tool to convert a Vox.com blog into a WXR-compatible format for importing into a WordPress blog. I would like to be able to also create all the blog-hosted images as attachments in the WXR file so you can check the "Download and import file attachments" box during the import process and have them auto-port the images into the new blog as well.
Unfortunately, Vox.com hosts their images in a URL without any file extension (e.g. http://a5.vox.com/6a00d4142121106a47011016caba2d860d-pi ) and relies on the browser to display the image properly. [Not the best approach in my book, but that's something I can't change so that's beside the point.]
When I try to import an attachment I've created in the WXR file pointing to this, I get the "Remote file error: Invalid file type" error, presumably because this isn't one of the valid MIME types verified when the import calls the wp_check_filetype() function.
Is there a way to allow WordPress to import attachments with no file extension? I see there is a plugin called pjw-mime-config that allows you to add new whitelisted MIME types based on file extension, but trying to add one with no file extension didn't help as I still received the above error when I tried to do an import on the WXR file that had that attachment.
I have successfully imported an attachment that has a .gif file extension on the image, so I know for a fact my attachment code works and it's just the extension-less images that are causing the problem.
Any help would be greatly appreciated. My export tool works fine for exporting text posts, but I'd love to be able to allow users to also easily export/import their images from a Vox blog to their new WordPress blog.