an <input type=file> is a security intrusion for JavaScript. you might not
have to much luck getting to it from the web page. You might look on the
Allaire dev exchange and see what cfx_file does. I can't remember if it will
do what you want, but it's worth a look.
Bryan
----- Original Message -----
From: "Philip Arnold - ASP" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 8:57 AM
Subject: RE: 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!
>
> If you want it BEFORE it goes to the server, then you'll have to do some
> client side validation in JavaScript
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
>
> "Websites for the real world"
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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