[wp-trac] [WordPress Trac] #5953: Absolute upload_path fails

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 22 05:39:43 GMT 2008

#5953: Absolute upload_path fails
 Reporter:  tellyworth  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.5      
Component:  General     |     Version:           
 Severity:  normal      |    Keywords:           
 1. On Options/Misc, enter "/tmp/foo/bar" as a value for the upload path
 2. Write a new post and attach an image.

 Expected: the image file should be stored as /tmp/foo/bar/2008/02/file.jpg
 or similar.

 Actual: a 'tmp/foo/bar' subdirectory is created within ABSPATH (if that's
 possible) and the file is stored there.  Both the filesystem path and URL
 path just append '/tmp/foo/bar', so you get
 'ABSPATH//tmp/foo/bar/2008/02/file.jpg' and

 An absolute upload_path should probably be rejected unless you also
 specify an upload_url_path, because there's no way to know what URL
 corresponds to an arbitrary filesystem path.

Ticket URL: <http://trac.wordpress.org/ticket/5953>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list