Absolute upload_path fails
|Reported by:||tellyworth||Owned by:||tellyworth|
- On Options/Misc, enter "/tmp/foo/bar" as a value for the upload path setting.
- 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 'ABSPATHtmp/foo/bar/2008/02/file.jpg' and 'http://example.com//tmp/foo/bar/2008/02/file.jpg'
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.