Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9481 closed enhancement (wontfix)

Uploads folder spec relative url assumes under wordpress folder

Reported by: anmari's profile 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

  1. under the home url or
  1. 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)

#1 @anmari
16 years ago

  • Version set to 2.7.1

#2 @Viper007Bond
16 years ago

  • Type changed from defect (bug) to enhancement

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.

#3 @Viper007Bond
16 years ago

  • Keywords dev-feedback added; uploads wp-content removed

#4 @DD32
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.

#5 @Denis-de-Bernardy
16 years ago

  • 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.

#6 @Denis-de-Bernardy
16 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.