This content has been marked as final. Show 3 replies
Thanks for the reply,
I took a look but couldn't find anything relevant to the issue
> I took a look but couldn't find anything relevant to the issue
I only skimmed the entry. But it appears to use the uploaded file's extension to determine which file types are allowed. For example, this line tries to verify the file is a PDF, RTF or word document.
<cfif NOT ListFindNoCase( "pdf,doc,rtf", CFFILE.ServerFileExt )>
You could use a similar check to determine if the uploaded file is a GIF or JPG (.jpg or .jpeg). Bear in mind file extensions can be changed. So extension alone does guarantee a file is of a particular type. It is more likely, but not a guarantee.