> ok how do i catch this?? > i have old data and images that where .uploaded. some one > did a bunch of > gif's but named them jpg.
Not the best option, but you could try and read the image header in the first few bytes. If it is really a gif, it should start with GIF87a, GIF89a, etcetera http://www.w3.org/Graphics/GIF/spec-gif89a.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4