If you do a fresh install using WordPress 3.5 or later, you may have noticed that one useful feature that’s sorely missing is the ability to change the default upload directory from the Administration page.
Not sure why it was taken out in the first place, fortunately there’s still a way to do it without too much trouble.
You just need to add the following code in the wp-config.php
file:
// Change default upload directory to '/myimages' define( 'UPLOADS', 'myimages' );
The example above is based on the assumption that you want your upload directory in a sub-folder called ‘/myimages’ at the root of your WordPress installation. If you prefer to do it within your wp-content
folder, make sure you include the path in the prefix:
// Change default upload directory to '/wp-content/myimages' define( 'UPLOADS', 'wp-content/myimages' );
Note: The above code needs to be added before the last section of wp-config.php
that says:
/** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );