#9481 closed enhancement (wontfix)
Uploads folder spec relative url assumes under wordpress folder
Reported by: | anmari | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | 2.7.1 |
Component: | Media | Keywords: | dev-feedback |
Focuses: | 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)
#4
@
16 years ago
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.
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
.