WordPress and the DCR file type
February 26th, 2006
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.
Entry Filed under: Blog tools,Daily thoughts
4 Comments Add your own
1. MultimediaGuy | February 22nd, 2006 at 8:53 pm
More about clocks:
http://director-online.com/buildArticle.php?id=297
http://director-online.com/buildArticle.php?id=3
http://director-online.com/buildArticle.php?id=350
Enjoy.
2. colin | May 23rd, 2006 at 7:27 am
hello, any success with this? The pop-up window I mean, any help much appreciated!
Cheers
Colin
3. MultimediaGuy | May 23rd, 2006 at 12:00 pm
I actually did get something working. Although not really pretty, it isn’t too bad. I’ll try to get that working this weekend and post it. I also want to get the “most recent comments” on the front page of the site so things like this are visible to others 🙂
4. Director @ Night » &hellip | June 14th, 2006 at 5:09 pm
[…] When I am writing a post I can upload a dcr file (see prior post about adding file types to WP) and am then presented with the options. […]
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed