Sunday, November 3, 2013

A little trouble with JPGs(All caps)

I just got a report that www.flowerbugshop.com isn't attaching JPGs to the e-mails sent out to the users from a project I just uploaded. This is a problem that I saw once before but it was related to white-spaces in the file-names. That's not the problem now, or it shouldn't be since the file-names no longer include white-space.

My first theory is that it is the result of the extension being in all uppercase: JPG instead of jpg. Yup, that's the problem. Shoot, it looks like I set the code to only match files with a 'jpg' extension, no other case is supported. Since I am the one who uploads the files I think I will just make sure they are uploaded with lower case extensions. No reason to add another case to the code.

Problem solved!