This is pretty useful, especially when you're hacking your way around a new 4.2 installation, after having completely customized your old 3.x Movable Type.

How To Change the Default Image Upload Location in Movable Type 4.0

Since there isn't an option within the Movable Type user interface to make the file upload utility remember that I want my images to always go into the images subdirectory I decided to go straight to the source and make it happen. Please remember that if these steps break your copy of Movable Type I'm not the least bit responsible.

Configuring the upload utility to upload to the same subdirectory by default is actually quite simple. It only requires editing a single line of a single .tmpl file. However, if monkeying with an application's source code makes you really nervous I've heard there is a great plugin for improving Movable Type's file upload utility that only costs $10.

The file to edit is called asset_upload.tmpl. Assuming you have your Movable Type files in your cgi-bin the path to this file looks something like cgi-bin/mt/tmpl/cms/dialog/asset_upload.tmpl.


Related Entries

1 Comment

I posted two other ways to change the default image upload location in Movable Type 4.0 on my blog, one simpler and one more complex:

http://www.beausmith.com/mt/2008/04/default-upload-destination-in-movable-type.php

Leave a comment

Recent Entries

  • The Placebo Effect

    So, how's that homeopathy working for you? The Strange Powers of the Placebo Effect - YouTube...

  • Coffee and a Devil's Star

    Reading another Jo Nesbo book (is that 'Joe' or 'Yo'?) and grabbing a cup at Williams on Northfield. I'm all out of order on this...

  • 5 Reasons No One Is Guestposting At Your (My) Blog

    Image via WikipediaWell, obviously, I've not been looking for guest posters. But apparently, it's a thing you can do to get more content and more...

  • Gearing Up for the 2011 Zombie Invasion

    Image by aeviin via FlickrPut on your brains, the zombies are coming. Zombies make their appearances here and there all through the year, but you...

  • My Mai Tai

    A Trader Vic mai tai, straight from the book. Remember, the only fruit juice in a mai tai should be lime. Yes, well, there should...

Close