You can specify a list of accepted MIME types in the CFFILE tag. Keep in
mind that it is the browser that reports this information to the server, and
sometimes it gets it wrong. And the MacIntosh is notorious for not reporting
properly.

DC

----- Original Message -----
From: "Ethan Rosch" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 09:34
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

Reply via email to