Make WordPress Core

Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#18272 closed defect (bug) (invalid)

Can not define media upload path/URL in multisite

Reported by: xtraxtra Owned by:
Priority: normal Milestone:
Component: Multisite Version: 3.0
Severity: normal Keywords: close
Cc: Focuses:

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
13 years ago

  • Keywords close added
  • Resolution → invalid
  • Status new → closed
  • Version 3.2.1 → 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
13 years ago

  • Milestone Awaiting Review

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.