April 12, 2024
Very old ColdFusion version suddenly adding spaces to CFIMAGE URL’s
Comments
(2)
April 12, 2024
Very old ColdFusion version suddenly adding spaces to CFIMAGE URL’s
Newbie 1 posts
Followers: 0 people
(2)

We have a site using coldfusion that is supposed to display images that are pulled from a shared drive. Recently these images are no longer displayed properly. When clicked on to open the image URL an error is received-

The requested URL /images/building/ 7780A.jpg was not found on this server.

We realized the url being passed suddenly has a space before the image name example above is space7780a. We have added new photos making sure there is no space in the image name to no avail. Not sure why the space is suddenly being added or how to resolve it. We haven’t touched the code for this site in years. Help please!

2 Comments
2024-04-17 21:44:07
2024-04-17 21:44:07

Talk is cheap, show me the code!

Developing with very old Coldfusion is one of my expertises.

Please!

Like
2024-04-17 18:26:38
2024-04-17 18:26:38

Have you tried wrapping the image filename in a TRIM function OR wrapping the entire image URL in a replaceNoCase function to remove the spaces completely?

Like
Add Comment