Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Only files with the following extensions are accepted  (Read 3648 times)

0 Members and 1 Guest are viewing this topic.

jim voz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Only files with the following extensions are accepted
« 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
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Only files with the following extensions are accepted
« Reply #1 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
Logged

jim voz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Only files with the following extensions are accepted
« Reply #2 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.
Logged

jim voz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Only files with the following extensions are accepted
« Reply #3 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
Logged

Aeronautic

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 125
  • Photographer / film maker turned webmeister...
Re: Only files with the following extensions are accepted
« Reply #4 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.

Quote
boeing.747-200.jal

becomes

Quote
boeing_747-200_jal

HTH
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Only files with the following extensions are accepted
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 20 queries.