My shopping cart allows customers to upload a photograph which is then displayed in the shopping cart. I paid a programmer to write custom code for this function, (it also uses IMH2), but the programmer is currently MIA.
However, I just realized that if the image extension is uploaded in upper case (such as JPG), the photo does not display. If the photo is uploaded in lower case (such as jpg) then the photo displays fine.
If a customer uploads filename.jpg, Zencart saves the file as 100.jpg. If a customer uploads filename.JPG, Zencart saves this file as 100.JPG. This seems to be what is causing the display problem, in that, Zencart has an issue with upper case extensions, and is incapable of displaying images if there is an upper case extension, despite the fact you are suppose to be able to set this configuration in Zencart Admin.
I have configured my Zencart Admin to accept both types of extensions (upper and lower case), but it appears this function does not really function. I have checked all of my files to ensure that all extensions, (upper and lower case are accepted), and I even discussed this with my server host to ensure that all mime types for images are recognized for browser display.
My server host informed me that the problem with the image not displaying if the extension is in upper case, is a "known Zencart malfunction". I'm not sure what this means, or how they know this is an inherent problem, but if anyone can point me in the right direction to correct this problem, I would appreciate it.
I think the feature of customers being able to upload images, and the image being displayed in the shopping cart is years overdue, and should have been implemented long ago, so I am hoping that some one here knows why there is an inherent malfunction with Zencart code that prevents images from displaying correctly because of case sensitive extensions. I truly hope that someone will know how to correct the "known malfunction" that exists deep within Zencsart that prevents images from displaying simply because a file extension is uploaded in capital letters... so any help would help...![]()
Bookmarks