[wp-trac] [WordPress Trac] #12044: Wrong path for uploaded files
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 28 17:20:53 UTC 2010
#12044: Wrong path for uploaded files
--------------------------+-------------------------------------------------
Reporter: wpmuguru | Owner: ryan
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.0
Component: Multisite | Version: 3.0
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by freddyware):
That's correct; new uploads now have a relative path:
{{{
$file:
string(32) "2010/01/24-230332-screenshot.png"
$uploads:
array(6) {
["path"]=>
string(50) "/home/rhhsweb/wp-content/blogs.dir/1/files/2010/01"
["url"]=>
string(32) "http://rhhsweb.com/files/2010/01"
["subdir"]=>
string(8) "/2010/01"
["basedir"]=>
string(42) "/home/rhhsweb/wp-content/blogs.dir/1/files"
["baseurl"]=>
string(24) "http://rhhsweb.com/files"
["error"]=>
bool(false)
}
}}}
The older uploads are still stored in the database with a full path, it
seems:
{{{
$file:
string(80) "/home/rhhsweb/wp-content/blogs.dir/1/files/2010/01/rhhs-web-
wordpress-button.png"
$uploads:
array(6) {
["path"]=>
string(50) "/home/rhhsweb/wp-content/blogs.dir/1/files/2010/01"
["url"]=>
string(32) "http://rhhsweb.com/files/2010/01"
["subdir"]=>
string(8) "/2010/01"
["basedir"]=>
string(42) "/home/rhhsweb/wp-content/blogs.dir/1/files"
["baseurl"]=>
string(24) "http://rhhsweb.com/files"
["error"]=>
bool(false)
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12044#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list