Archive for February 26th, 2006

WordPress and the DCR file type

While working on the best way to put up sample dcr files for viewing on this site I tried to upload a dcr but I was rejected by WordPress. In pre 2.0 versions of WP uploads were handled on an upload page where you had the option to add new file types. This option has been removed (as far as I could tell) in WP2.

To get around this so you can easily upload dcr files you just have to open the wordpress/wp-admin/admin-functions.php file and add the dcr file type to the allowed types for uploading.

If you open that file, search for the line containing the swf file type (near the bottom), and add the dcr type below it, so it looks like this.

'swf' => 'application/x-shockwave-flash',
'dcr' => 'application/x-director',

I tested it once, so it must be OK…right? Now I’m playing with a popup window solution for displaying these, a ‘menu’ system of some sort, or just a direct link to the dcr. Since the last sounds easiest, I have a feeling I’ll go with that one. Simplicity…often the best answer.

4 comments February 26th, 2006


Recent tweets...

  • I ordered my iPad this morning. 16 gig wifi edition. I need to look like the hippest kid in the coffee shop ;) 6 days ago
  • Director get together for "old timers" at GDC for those that will be there. Wish I was going. Maybe next year ;) 1 week ago
  • Just noticed I have lots of comments in moderation on my blog...and was never informed of them. Bad server, bad! This weekend... 1 week ago
  • Best of luck to Rob Griffiths @rgriff who started Mac OSX Hints a decade ago. A valuable resource! http://www.macosxhints.com/ 3 weeks ago
  • Still waiting for Snow Leopard Shockwave plugin. I think I'll be waiting a LONG time. Adobe: more time developing, less html5 fights. 2010-02-15
  • More updates...

Director Sites

RSS Adobe Director RSS

Calendar

February 2006
M T W T F S S
    Mar »
 12345
6789101112
13141516171819
20212223242526
2728  

Archives

Recent Posts

Recent Comments