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’,

Screen Shot 2014-01-05 at 10.21.11 PM.png

Then in wp_ext2type() added ‘skp‘ to the ‘text’ type mapping:
Screen Shot 2014-01-05 at 10.21.31 PM.png
It seems that both are required to allow it to work. Geez..it took me forever to figure this out!

Previous Post
LED Roue Cyr - Jig to slot tubing
Next Post
Master Bathroom Remodel Done! Custom Cabinets!

Leave a Reply

Notify of

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2021 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

68 queries. 0.440 seconds.

Log in