Jan
6
2014
Uploading Sketchup (skp) files into WordPress
So, I want to use Ecto (and probably other blog tools, like MarsEdit) to upload Sketchup .skp files, but it was always giving “invalid file type”. I poked around in WordPress, and here is what I modified to make it work:
Edited wp-includes/functions.php, and found: get_allowed_mime_types(..) and added this to the list:
‘skp’ => ‘application/sketchup’,
Then in wp_ext2type() added ‘skp‘ to the ‘text’ type mapping:
It seems that both are required to allow it to work. Geez..it took me forever to figure this out!
Previous Post