I believe the only was to do anything with the image is after it is already uploaded. Then you can use CFX_image to evaluate the size and display an error to the user that the image is beyond the size specified, then delete the image and tell them to try again.
~~ Stephenie Hamilton Macromedia Certified ColdFusion Professional -----Original Message----- From: Michael Corrigan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 10:29 AM To: CF-Community Subject: Determining Image size Good morning all, This one's got me really stumped. One of our clients has a section of their website which allows other companies to sign on as their affiliates. They can give name, address, website, e-mail, etc. but the one part that's killing us is that they can also uploads their company logo. We have a window pop up several times that tells them that their logo must be no more than 100x100 pixels. Guess what? We've got idiots loading images that are like 800x600 etc. We even had one clown upload a high resolution image which is about 13Megs. Totally throws off the website. Does anyone know of a way to determine the size of an image that is being uploaded? Some way that I can test for height and width and catch those exceptions? The solution that we had was totally cool with the client until the person that actually verifies the new affiliates information got a hold of it and she's enough of a pain to DEMAND that we change it so that it's impossible to upload images that are too big. Funny part is that she thinks that they are not going to pay for the fix. HA! We got the docs to prove it. Thanks, Michael Corrigan Programmer Endora Digital Solutions 1900 Highland Avenue, Suite 200 Lombard, IL 60148 630-627-5055 ext.-136 630/627-5255 Fax _________________________________________________________________ _____ Get the mailserver that powers this list at http://www.coolfusion.com Archives: http://www.mail-archive.com/cf-community@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Archives: http://www.mail-archive.com/cf-community@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists