WordPress.org

Make WordPress Core

Opened 23 months ago

#18272 new defect (bug)

Can not define media upload path/URL in multisite

Reported by: xtraxtra Owned by:
Priority: normal Milestone: Awaiting Review
Component: Multisite Version: 3.2.1
Severity: normal Keywords:
Cc:

Description

We have a multisite installation with five subdomains. We do not wish to use the default /files/yyyy/mm/filename.ext structure for uploaded media.

In Network Admin > Sites > Edit (under a subdomain) > Settings, you can set:
Upload Path (eg /var/www/pathonserver)
Upload Url Path (eg http://www.domain.com/pathonserver)
Fileupload Url (eg http://www.domain.com/pathonserver)

However WordPress does not recognise these settings and uses the default format.

If you comment out the last line on wp-includes/ms-settings.php (ie ms_upload_constants()), it does recognise the settings.

Change History (0)

Note: See TracTickets for help on using tickets.