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!

Tags:


Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Subscribe to new posts:

You'll get an email whenever a I publish a new post to my blog and nothing more. -- Corbin

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2024 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

69 queries. 0.121 seconds.

Log in