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
// 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 'https://asset.itnota.com/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' );
Hi, I add the code as your informed. And the file url did changed to my desired path. But the file could not be opened and seen, after upload.
After that failed, I also tried to change the settings on “setting>media>Store uploads in this folder” to new path at the same time. Still the uploaded media could not be opened.
Any way to solve that please?