forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: mscrw on January 02, 2004, 05:09:26 pm

Title: Problem with blank spaces in image filename
Post by: mscrw on January 02, 2004, 05:09:26 pm
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
Title: Problem with blank spaces in image filename
Post by: hyperion on January 02, 2004, 05:22:52 pm
What is your operating system?
Title: Problem with blank spaces in image filename
Post by: mscrw on January 02, 2004, 06:16:50 pm
The company that hosts my website says that it's a "Linux based system".
Title: Problem with blank spaces in image filename
Post by: mscrw on January 02, 2004, 07:12:21 pm
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.
Title: Re: Problem with blank spaces in image filename
Post by: jdcdesigns on October 01, 2004, 07:05:13 pm
You can find your solution here:
http://forum.coppermine-gallery.net/index.php?topic=9787.0#msg47563