How to change default file upload path?

Follow the next steps in order to change the standard folder for uploaded images:

  1. Download and install FTP client (FTP Clients).
  2. Open FTP client and enter your FTP access credentials (host, username, and password) to access files on your server.
  3. Navigate to "yourwordpresswebsite" directory.
  4. Open your "wp-config.php" file, located at the root of your WordPress, and add the following snippet:

    define('UPLOADS', 'wp-content/uploads');

    where "wp-content/uploads" is a path to the folder with the images. Change it to the one you need.

  5. Make sure you add this code before the line:

    require_once(ABSPATH . 'wp-settings.php');

If you want the previously uploaded images to be accessible, please move the content of "wp-content/uploads", which is located in the root WordPress directory, to the folder you specify in "wp-config.php".

Note for a version older than 4.3.6: Gallery plugin works only with the attached images. I.e. the images are added to the gallery only if they are uploaded to your server. They cannot be selected from any external source.

Have more questions? Submit a request