Last Updated: February 25, 2016
·
4.385K
· jentanbernardus

Change the Default Media Upload Directory in WordPress 3.5

The new Media Uploader in WordPress 3.5 is probably the most important change of this release. Another important but less talked about change is the disappearance of the option to change the upload directory path from Settings. In this tip I will show you how to change the default media upload location in WordPress 3.5.

In order to change the default media upload location, you need to edit the wp-config.php file located in the root directory of your WordPress installation. If you want upload directory to be wp-content/files then you will need to place the following code in wp-config.php.

define( 'uploads', 'wp-content/'.'files' );
If you want the upload directory to be outside wp-content, like www.yoursite.com/files/ then you need to set upload path in wp-config.php like this:

define( 'uploads', ''.'files' );
Remember you can still choose whether or not you want uploaded files to be organized in month/year folders.