That is a limitation of the browser. Use server side processing to see if the
file is actually what you want.
> -----Original Message-----
> From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 12, 2000 2:56 PM
> To: CF-Talk
> Subject: cffile action="upload" accetps all file types
>
>
> I've never used the CFFILE upload before, and I'm trying to limit
> uploads to gifs and jpegs. My syntax is:
>
> <cffile action="upload"
> accept="image/gif, image/jpg, image/jpeg"
>
> etc
>
> but any format is accepted. I can test the content with cfif and
> file.contentsubtype variable, but isn't the cffile tag supposed to do
> this?. Has anyone ever encoutered this?
>
> TIA,
>
> Doug
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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