How To Change File Upload Path In WordPress Blog?

Posted by

Hello All,

In order to change the file upload path one need to modify wp-config.php file. Just need to add below mentioned code before require_once(ABSPATH.’wp-settings.php’); code.

define(‘UPLOADS’, ‘wp-content/myuploads);

Now, uploaded files will be in wp-content/myupload folder. If ‘uploads_use_yearmonth_folders’ is enabled then upload will be saved in wp-content/myuploads/2008/12 where 2008 is the current year, and 12 is the current month. If the myuploads directory does not exist it will be created as long as the parent folder wp-content is writeable.


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.