Uploading Sketchup (skp) files into WordPress

General

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
Bathroom Remodel Done!

Leave a Reply

avatar
500
  Subscribe  
Notify of

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2019 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

67 queries. 0.459 seconds.

Log in