Catch error during upload
Posted on 2003-03-14
I need help!
My application provide upload image to user.
The problem is there is an error..but I need to know what kind of error caused the uploading is failed
Below the script:
<cffile action="upload" nameconflict="makeunique" destination="#imagepath#" filefield="photo" accept="image/gif,image/jpg,image/jpeg,image/pjpeg">
<font face="arial" size="-2" color="red">File Uploaded</font><Br>
<script>alert('File Cannot Be Uploaded\nNot An Image');</script>