Whe I try to upload pictures using the "From local server" option the system will not work for me. I set a Loacl Server Upload Path to "upload" and added this directorty to the gallery2 root.
When choosing the option "From local server" I click on the 'upload' link underneath the serverpath option (after uploading some jpegs in there) but then I get the following message: "The directory you entered is illegal. It must be a sub directory of one of the directories listed below. " and the serverpath turned into: "c:\inetpub\wwwroot\gallery2\upload" which physically does in fact exist!
What am I doing wrong?
----
Gallery2 version: @version $Revision: 1.8 $Date: 2005/01/06 07:07:28
Webserver (with version): IIS 4/5
Datatabase (with version): MySQL 4.1.7
PHP version (eg 4.2.1): 4.3.10
Graphics Toolkit(s): GD
Operating system: winXP professional SP2
Web browser/version: any; IE6 FF1.0
Posts: 3236
I believe that the path you enter there needs to be an ABSOLUTE path, not a simple relative one.
Posts: 383
Yep, you are right, I changed it from over here, and now I was able to use this option.
It would be very nice if this method allowed you to fill in the title and description manually and perhaps even show the thumbnails (the files are on the server allready so why not) Would that be a GUI request???
Posts: 3236
The files are "on the server" but they are not a part of gallery yet, so they would have to be imported to gallery to show thumbs... I think. It could be possible to generate a temp thumb of every image, which would be kind of nice for 10 or 15, but imagine someone importing 1,000 or more images. It would take forever just to generate the thumbs.
Could be a neat option though I would definatly want it to default to *OFF*. Is there a "captionator" in G2 yet? I don't know cause I haven't tried to use it... but that kind of thing would let you fill in title/description after upload.
Posts: 383
There is a option that lets you edit the caption of 9 images at a time (just try editing the caption of 1 image) this is however still 1 step extra on top of what I am looking for; I still need to upload first, then edit captions where this could be done in one step. Also something I do not like about the "from local server" option: it dills in the title, summary and the description with the name of the image. For what possible reason would that be desired behaviour? I cannot think of any reason why I would want the three fields to be the same. It is better if only the title gets the image name or even better:
Display the image name when no title, summary or description are provided. In this way you do not need to set the title field to anything at all, and this would be better for the people who have digi-cam pictures that allmost allways are numeric. (Or at least make it optional to not fill in a title if it isn't optional allready)
Posts: 5
Hey, im having some problems trying to get this feature to work.
everytime i try to add a path to "Local Server Upload Paths" i get the following error "The webserver does not have permissions to read that directory."
the only path it will except is "/tmp/" which i cant seem to locate.
where am i suppose to put my "uploads" directory?
TIA
Posts: 383
[stupid question]What permissions are set for the directory you would want to upload too[/stupid question]
Did you use the complete path??
Posts: 5
i tried setting the directory to 777 and still nothing
i believe i used the absolute path, gallery2 is installed in www.blah.com/modules/gallery2/ so i used /root/public_html/modules/gallery2/
i made a folder inside there /root/public_html/modules/gallery2/upload/ , outside of it /root/public_html/upload/ even in the root /upload/ but still nothing, get the same msg.
the only folder i can add is /tmp/ , i thought this was in my root folder but when i ftp files to it and try to browse it through gallery2, nothing shows, it actually shows files and folders that arent there (i must be looking in the wrong place, but cant seem to find the tmp folder gallery is using).
my gallery2 folder and g2data folder are in 2 different locations, is this okay?
The install setup advised to do this, said to put g2data outside of the public_html folder.
so my g2data folder is /g2data/
and my gallery2 folder is /root/public_html/modules/gallery2/
Posts: 383
I think it wants the physical absolute path. Since I am on windows and my testserver is on my C: drive the absolute root for me starts with C:\inetpub\wwwroot\gallery2 for example.
Did you try without the first slash:
root/public_html/...
or /public_html/...
or public_html/...
But I am just guessing here
Posts: 41
Did you ever get this solved?
Posts: 383
yes, I figured out what the full path was in my case: c:\webroot\whatever\gallery2\upload
Posts: 5
thanks for the help guys
i figured out i had to have "home" in front of my root
home/root/tmp/
everything works now, thanks again