Closed (fixed)
Project:
ImageField
Version:
6.x-3.2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2010 at 15:57 UTC
Updated:
1 Mar 2010 at 21:46 UTC
Hi,
I've got a problem with ImageField storing the complete path of all files in the files table. At least in my case, it stores the absolute system path, and not the path relative to the files directory.
In other words, this is what it stores:
/usr/local/pem/vhosts/100653/webspace/httpdocs/files/album-images/STR_001_BG.png
However, this is really what i would like to see:
album-images/STR_001_BG.png
Storing the entire path could lead to portabilityissues if one wanted to change the path of the files directory, or move the site to another server.
Am I the only one who's got this problem?
Comments
Comment #1
quicksketchFOR CRYING OUT LOUD I'M TIRED OF ANSWERING THIS. SEARCH!!!!
Comment #2
quicksketchI literally answer this question on a weekly basis, sometimes multiple times a day. Very frustrating.
Some issues:
#409884: a way to refresh filepaths stored in database?
#324474: migrating servers issue
#434458: Invalid path / file not found
#98199: ['filepath'] is'nt portable. Move servers, change Settings > File system path - everything breaks and can't be updated.
#314022: Problems when moving Drupal sites/files directory