Whatever message this page gives is out now! Go check it out!
<cfimage action="read" source="#fileUpload.serverFile#" name="myImage"> <!--- Determine whether the file is greater than 300 pixels in width or height. ---> <cfif ImageGetHeight(myImage) gt 300 or ImageGetWidth(myImage) gt 300> <!--- If the file exceeds the size limits, delete it from the server. ---> <cffile action="delete" file="#fileUpload.serverDirectory#/#fileUpload.serverFile#"> <cfoutput> <!--- Display the following message. ---> <p> The image you uploaded was too big. It must be less than 300 pixels wide and 300 pixels high. Your image was #imageGetWidth(myImage)# pixels wide and #imageGetHeight(myImage)# pixels high. </p> </cfif> |