#9481 closed enhancement (wontfix)
Uploads folder spec relative url assumes under wordpress folder
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Media | Version: | 2.7.1 |
| Severity: | minor | Keywords: | dev-feedback |
| Cc: |
Description
The relative url for the upload path assumes it is under the siteurl (ie wordpress folder) and the default suggests wp-content/uploads, which implies that one should be loading files under the wp-content directory. However relative url always loads under specified 'siteurl'
It does not make sense to have uploads in wordpress code directory,
I think the assumption should be that the relative upload path is either
- under the home url or
- under the potentially relocated wp-content directory.
One can get around this for now by using the "full url path" and have the uploads wherever you want - (Although the flash loader does not seem happy loading to top level directory, even though I have mod security fix there)
Change History (6)
comment:2
Viper007Bond — 4 years ago
- Type changed from defect (bug) to enhancement
comment:3
Viper007Bond — 4 years ago
- Keywords dev-feedback added; uploads wp-content removed
The relative url for the upload path assumes it is under the siteurl (ie wordpress folder) and the default suggests wp-content/uploads, which implies that one should be loading files under the wp-content directory. However relative url always loads under specified 'siteurl'
I would've thought that 'wp-config/uploads' is showing that its relative to the wordpress root folder myself, rather than that the field is relative to wp-content.
- Resolution set to wontfix
- Status changed from new to closed
+1 to wontfix. you can also define the upload dir as a constant if all else fails.
- Milestone Unassigned deleted

I honestly think how it is now is best.
Having the full filesystem path in the uploads directly input would A) be incredibly long on many hosts, and more importantly B) be confusing to the majority of users (who are novices). The same applies to the URL -- I think most people want their uploads in their wp-content folder and not relative to their blog URL.
Regardless, it's very, very easy to make it be elsewhere. Infact I serve my uploads from an entirely different subdomain (static.domain.com) running an entirely different HTTPD (Lighttpd). All you do is use relative paths.
Upload directory: ../../../foo/bar
Upload URL: http://static.domain.com/uploads
Recommend closing as wontfix.