• Hi here, I’m trying to create UPLOADS folder outside of the WordPress folder. Below is my structure:
    .
    |____apps
    | |____media
    |____index.php
    |____wordpress
    |____wp-config.php

    I want to make the “media” as my “uploads” folder by define('UPLOADS', 'apps/media');.

    But it doesn’t work for me. Is something wrong here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • InterServer

    (@interservernet-web-hosting)

    I think as per your current code wp-config.php search for media folder inside apps directory under worpress directory

    Can you try the following?

    define(‘UPLOADS’, ‘../apps/media’);.

    Thread Starter Dan9

    (@dang-vu)

    I defined as your and WordPress concatenates an ugly url: example.com/wordpress/../apps/media/some-image.jpg.

    The problem is WordPress use $siteurl instead of WP_HOME or WP_CONTENT_URL in the wp-includes/functions.php.

    Can’t figure out how to modify that without touching the core.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change UPLOADS directory’ is closed to new replies.