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-2023 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

71 queries. 1.624 seconds.

Log in