coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: eriichan on October 11, 2008, 09:39:03 PM

Title: Batch Add oddity
Post by: eriichan on October 11, 2008, 09:39:03 PM
I've been having this issue for a few weeks now, and I'm not exactly sure what started to cause it. I've uploaded the pictures I want into a folder (CHMOD 755/775 for all folders and pictures inside /album/) via FTP. I go to batch add files, browse to the folder where I uploaded them and press "OK". And then I press "Insert Selected Files" but it drops me right back into the "Select Directory" screen.

I tried testing the batch add function by uploading smaller number of pictures; it had no problems doing up to 20-30 at a time, but anything beyond that it returns me back to the "Select Directory" screen without any other message. I tested the HTTP upload function and it worked without a problem for me, but perhaps that's because I was logged in as an admin user.

I checked the phpinfo for the suhosin information and they returned these values:

suhosin.post.max_vars: 400
suhosin.request.max_vars: 400


Gallery Link: http://www.jorjaallaround.org/gallery
What I'm trying to upload: http://www.jorjaallaround.org/gallery/albums/Television_and_Movies/television/csi/Season_9/901/903_war__(115).jpg
(there are a bunch of other pics in the folder I've yet to upload)

Here's the test user account information with upload privileges.
Username: test
Password: test123

Any assistance would be greatly appreciated.
Title: Re: Batch Add oddity
Post by: Joachim Müller on October 13, 2008, 07:20:51 AM
Quote from: eriichan on October 11, 2008, 09:39:03 PM
What I'm trying to upload: http://www.jorjaallaround.org/gallery/albums/Television_and_Movies/television/csi/Season_9/901/903_war__(115).jpg
Returns a 404 not found
Title: Re: Batch Add oddity
Post by: eriichan on October 13, 2008, 05:22:54 PM
Oops. Fixed!

Sorry about that.
Title: Re: Batch Add oddity
Post by: Joachim Müller on October 14, 2008, 07:07:35 AM
http uploads work as expected (see http://www.jorjaallaround.org/gallery/displayimage.php?pos=-35033). Avoid special chars in folder and file names when batch-adding.
Title: Re: Batch Add oddity
Post by: eriichan on October 14, 2008, 07:13:33 AM
So the parentheses in the filenames are contributing to the problem? Man, I feel like a moron for missing something like that. -__-;;

Aside from them, what other symbols/characters should I avoid? I'm not the one who uploads the majority of the images, so I'd at least like to let my group know what not to name their files.

Thanks for the assistance. :)
Title: Re: Batch Add oddity
Post by: Joachim Müller on October 14, 2008, 07:49:06 AM
From the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#batch_add_pics):
QuoteFolder names must not contain dots. We also highly recommend refraining from the use of any other special characters - use only a-z, numbers and - (dashes) or _ (underscores) to fill blank spaces.
Title: Re: Batch Add oddity
Post by: eriichan on October 14, 2008, 07:19:21 PM
I'll let them know how to format their filenames from now on.

Sheesh, I'm totally embarrassed.

Thanks so much!  :D
Title: Re: Batch Add oddity
Post by: Joachim Müller on October 15, 2008, 07:22:29 AM
Quote from: eriichan on October 14, 2008, 07:19:21 PM
I'll let them know how to format their filenames from now on.
Who's "them"? Are you trying to say that you're granting non-admins FTP upload permissions? You shouldn't do that - under no circumstances.
Title: Re: Batch Add oddity
Post by: eriichan on October 15, 2008, 05:31:23 PM
Oh no, they have no access to the FTP. They just save the screencaps, zip them up and email them to me. Then I unzip them, upload them and load them into the gallery.

Just this batch has been giving me some trouble over the past two weeks.
Title: Re: Batch Add oddity
Post by: Joachim Müller on October 16, 2008, 07:09:25 AM
OK, that's fine then. But I don't think that you can expect your users to name the files properly. I suggest that you rename the files for them after unzipping them. There are some nice tools for batch-renaming files on the client like 1-4a rename (http://www.1-4a.com/rename/)