Make WordPress Core

Opened 13 years ago

Closed 11 years ago

Last modified 11 years ago

#18272 closed defect (bug) (invalid)

Can not define media upload path/URL in multisite

Reported by: xtraxtra's profile xtraxtra Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: close
Focuses: 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 (2)

#1 @c3mdigital
11 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.2.1 to 3.0

in ms_upload_constants():

if ( ! get_site_option( 'ms_files_rewriting' ) )
	return;

You can add a filter to get_site_option_ms_files_rewriting to return false to disable the setting of the upload constants.

#2 @markoheijnen
11 years ago

  • Milestone Awaiting Review deleted

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.