Well, if you really have "images/gif, images/jpeg" in there, it shouldn't
work anyway. Those are invalid mime-types.  I have never had problems with
the accept attributes.  In fact sometimes it works too well, when
progressive jpegs are used, which even though they have .jpg extensions,
their mime-type is PJPEG.  I would suggest however, that a better choice
would be to force a valid set of file extensions such as GIF or JPG instead
of trying to rely on the browser to properly report the mime type.

DC

----- Original Message -----
From: "nair ajit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 30, 2000 17:47
Subject: <cffile>ACCEPT attribute


> Hi,
>
> I'm using <CFFILE> command's UPLOAD action to upload photographs.In
> order to
> restrict the users from uploading files other than gif's or jpeg's, i
> used
> the ACCEPT attribute ie.
>
> <cffile action="upload" destnation="c:\temp"....
> accept="images/gif, images/jpeg"....>
>
> But now what is happening is that even if I give an html file or an exe
> file
> to upload,it accepts & that file is stored in the destination directory.
>
> Please give me a solution to this problem.
>
> -----------------------------------------------
> FREE! The World's Best Email Address @email.com
> Reserve your name now at http://www.email.com
>
>
> ------------------------------------------------------------------------
> ------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
> or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to