Question
file type check before uploading a file
Right now I have a processing page that uploads a file only of type zip. If you try submitting something other than a zip file, it throws an error. Is it possible to check the file type before uploading?
Something like this in pseudo code:
if (file type does not = zip ) {
redirect to the homepage with cflocation
}
else {
<cffile action="upload" .... />
}
