lumis - 18 July 2008 12:40 PM
the way i have it setup is so the paths are relative to my install of EE
for instance
Server Path to Upload Directory = “../images/uploads/”
URL of Upload Directory = “images/uploads/”
as you can see in the error output img_rootstep i am appending the input to the src= to the root directory of your htdocs
so try changing your file upload preferences to be
Server Path to Upload Directory = “../images/feature_photos/”
URL of Upload Directory = “images/feature_photos/”
Hi Lumis. Thanks for the great plug-in! Thanks also to those of you trying to resolve server path issues…
Lumis’ above advice was useful, but I am using a university server for the first time for a new site. I also get the ‘image not readable’ error.
You access us from a URL with the dreaded tilde.
http://www.arts.university.ca/~ourfolder
I guess this is something like running in a subdirectory, but if I try to mess with the configurable variables in path.php I get an error no matter what I change it to. Perhaps because we are in a folder within a subdomain? Ugh.
The server path to my web directory is thus like this:
/Users2/ourfolder/web-docs/
and the file upload folder
/Users2/ourfolder/web-docs/img/events/
Rather than this folder, /Users2/ourfolder/web-docs/img/events/, it wants to produce
src = /~ourfolder/img/events/solguy.jpg
img_base = /~ourfolder/img/events
img_basename = solguy.jpg
img_extension = jpg
img_filename = solguy
img_rootstep = /usr/local/apache2/htdocs///~ourfolder/img/events
img_rootpath =
img_fromroot = /solguy.jpg
If I try to make my server paths to the file upload folder relative to the EE folder, as Lumis has described above, I get
src = img/events/solguy.jpg
img_base = img/events
img_basename = solguy.jpg
img_extension = jpg
img_filename = solguy
img_rootstep = /usr/local/apache2/htdocs//img/events
img_rootpath =
img_fromroot = /solguy.jpg
If I try Derek’s touch-up to the code, I seem to get an even longer string in img_rootstep… ugh, I think I need to go and look at the paths with fresh eyes tomorrow.