#18272 closed defect (bug) (invalid)
Can not define media upload path/URL in multisite
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.
in ms_upload_constants():
You can add a filter to
get_site_option_ms_files_rewriting
to return false to disable the setting of the upload constants.