coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: jim voz on January 25, 2009, 09:14:03 PM

Title: Only files with the following extensions are accepted
Post by: jim voz on January 25, 2009, 09:14:03 PM
I'm getting this error message when trying to batch upload our images from our ftp site "jpg/jpeg/jpe/gif/png/bmp/jpc/jp2/jpx/jb2/swc/iff/"
the file Digby 219.jpg
it clearly is a jpg format and falls within the parameters set so why why am I getting the error when batch add file ironically I can upload file one at a time but not batch them
Title: Re: Only files with the following extensions are accepted
Post by: Aeronautic on January 25, 2009, 10:32:13 PM
Just guessing here but could it be the file name having a space between Digby and 219?

I've noticed odd behavior in the past with file names or album names (on server folders created just to hold specific uploads under user main folder) that had - or _ or . in them - none had spaces of course, but something in that list I just wrote made CPG unhappy.

I think I stick to dashes (-) now in all album names.

Again, this may be unrelated to your issue but you might try to rename those files with blank spaces and give it another try.

To be clear - if there are blank spaces in the file names - remove them or replace them with - _ or . and test again.

HTH
Title: Re: Only files with the following extensions are accepted
Post by: jim voz on January 28, 2009, 03:42:20 PM
Strangest thing, from my office computer I was able to upload the files that I had received an error message on but from another computer the error message returns, how bizarre.
Title: Re: Only files with the following extensions are accepted
Post by: jim voz on January 28, 2009, 04:07:47 PM
I did notice in out FTP site the file had an underscore in front of it, not sure why example _180.jpg but on our desktop it shows up as 180.jpg not sure why our FTP sees it with an underscore
Title: Re: Only files with the following extensions are accepted
Post by: Aeronautic on January 31, 2009, 12:57:41 AM
With respect to the actual image files, I believe CPG does change any "." in a file name to an underscore.

Quoteboeing.747-200.jal

becomes

Quoteboeing_747-200_jal

HTH
Title: Re: Only files with the following extensions are accepted
Post by: Joachim Müller on February 01, 2009, 11:21:27 AM
Yes, as a safety precaution for poorly-configured webservers to make sure that the rar-exploit can not be executed (google for that term for details). Has been explained in previous security-related announcements. Coppermine will replace all dots with underscores in a file name except the last one that actually separates the name from the extension. foo.bar.bla will become foo_bar.bla, foo.bar.bla.whatever.you.can.think.of will become foo_bar_bla_whatever_you_can_think.of