Please help a newbie upload multiple files

worms

Joined: 2002-08-23
Posts: 4
Posted: Fri, 2002-08-23 01:39

Gallery 1.3.1 / PHP 4.06 / no SSH / XP / SmartFTP 969

Uploading 5 files at a time through the web interface works but I need a way to upload more at once. Here's what I've tried:

1. Uploading 10 files usually hangs right away. Network traffic stops immediately after the "File upload in progress" window fully loads. 9 files at once seems to work better. Still, I'd much rather do 90 files at once so...

2. I FTP'd the jpg's to /uploads and specified the full document_root path in the Gallery upload page. Gallery found 7 of the 26 images in it's own /images folder but none in the /uploads folder I had specified. Moving the jpg's to the /images folder had no effect. Gallery found the same 7 files every time including /images/albumthumb_BR.gif but not /images/albumthumb_RR.gif.

3. I put about (40) 1MB jpg's in a zip and FTP'd it to that same /uploads folder. Specifying the same path as above plus /file.zip worked perfectly and Gallery cranked away at it. It hung after creating the thumbs for about a dozen of the jpg's. None of the files created were implemented into the gallery and I had to use cleanup.php to remove them.

4. Gallery remote seems to work OK but I can't find a way to have it use the file names as captions.

Does anyone have any suggestions that might ease my pain?

TIA

 
ill
ill's picture

Joined: 2002-08-15
Posts: 756
Posted: Fri, 2002-08-23 05:29

You missed to tell us the complete URL you were using to tell Gallery to load the files from.

This is valid:
Move images to /tmp (thats a physical path, not a logical within DocumentRoot!) and handle this URL: file:///tmp
Move images to /opt/apache/htdocs/upload and handle this URL: file:///opt/apache/htdocs/upload

Invalid:
Move images to /tmp (thats a physical path, not a logical within DocumentRoot!) and handle this URL: /tmp (Note: No protocoll qualifier here)

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-08-23 05:33

Well, it's probably ieasiest to FTP them as you are doing, and use the
bottom option of the add pictures page. The one that lets you specify a
local directory. Just make sure you specify the ENTIRE path, not just the
relative path from your gallery install.

Alternatively, if you have shell access, you could use the adddir.pl script
found in the contrib section (or I have a nicer version in the custom forum)
to do it as well.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-08-23 17:12
Quote:
4. Gallery remote seems to work OK but I can't find a way to have it use the file names as captions.

With a little hack to the gallery_remote.php file in your gallery installation you
can fix this. Just add this near the top of gallery_remote.php:

$setCaption = 1;

From this point on, all photos uploaded with Gallery Remote will have their
captions set to their original file name. I'll make sure this gets back to the
Gallery Remote folks.

 
worms

Joined: 2002-08-23
Posts: 4
Posted: Thu, 2002-08-29 04:13

I'd swear I'm not doing anything different but now using a temporary directory and specifying the path in the upload window (/home/httpd/vhosts/mydomain.com/httpdocs/uploads) works fine. Just to be sure, I tried the http://www.... equivalent in that box and got those same 7 files I mentioned before. I could have sworn I was using the local path before but the evidence proves otherwise.
Anyway, I'd still like to be able to use Gallery Remote so I tried bharat's plan. It took me a while to realize that I should be altering the php file on the server -- not on my PC. Then it took a few tries to find the right place for the command. Finally settled on: require($GALLERY_BASEDIR . "init.php");$setCaption = 1; and it workd great. Thanks guys!