Problem with blank spaces in image filename Problem with blank spaces in image filename
 

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

Main Menu

Problem with blank spaces in image filename

Started by mscrw, January 02, 2004, 05:09:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mscrw

My gallery doesn't display images that have a blank space in the file name.  For example, I inserted an image named 001 a.jpg, which appears as 001%20a.jpg to my IE browser and as 001 a.jpg in the directory (using ftp).

I can't view the image even by pasting either of the urls into my browser.  I was having the same problem with duplicated filenames but I solved it by replacing the ~ character with a regular letter (I used a "q").

How can I make db_input.php replace the blank space in the filename with a letter or number?

Thanks

hyperion

"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

mscrw

The company that hosts my website says that it's a "Linux based system".

mscrw

I fixed it by inserting a space in with the characters that aren't allowed - now it replaces blank spaces with an underscore and displays the images fine.