Doug:
I'm doing a similar thing with accept = "image/gif,image/pjpeg,image/pjpeg"
instead. If the user tries to upload a bmp then, and error will be raised
which I can catch... even if it is a bmp simply renamed to a jpeg.
Andrew Hewitt
Web Application Developer
webworld studios, inc.
www.wwstudios.com
"I believe five out of four people have trouble with fractions."
-----Original Message-----
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 3: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