cffile has an accept attribute try that.
ACCEPT="mime_type/file_type"
Bryan
----- Original Message -----
From: "Ethan Rosch" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 8:34 AM
Subject: CFile (another question while we're all on topic!)
> Is there a way to verify the mime type of a file before the user clicks
submit on the form?
>
> Such that if it is an incorrect mime type, we can call an error?
>
> I don't think you can check the form field because it creates a .tmp file
as its value and by the time you can call a server variable, it's too late!
>
> Thanks,
>
> Ethan
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists