Changing the Upload Directory in WordPress 2.0 – Duke
I was googling around looking for info about changing the default image upload directory as well as the reason why the WordPress developers removed this once inherit feature. I didn’t find much.
I just hacked the config file (wp-config.php) to define the uploads directory by adding this line of code:
define('UPLOADS','images');
Th admin function that executes the upload looks for this definition at line 840 of the wp-includes/functions-post.php file.
You can insert whatever directory you’d like to use for images in place of ‘images’ in the code above starting of course from the root directory where WordPress is displayed.
I also stumbled upon this plugin that restores the WordPress 1.5+ upload options in the admin area:
Seems like it would have been beneficial to keep those options in tact since many many WP users are going to be upgrading. I’m sure that in a good number of cases, users will have setup a different images directory because of the use of WYSIWYG plugins or otherwise.
I’m definately loving the ability to resize the editing box, though.
