look into cffile tag attribute "Accept". For this attribute you can write 
what file types needs to be accepted with a comma delimiter.

Erk



>From: Billy Cravens <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: preventing cffile programs
>Date: Thu, 22 Mar 2001 16:19:01 -0600
>
>You've already got the answer.. restrict based on conditional logic.
>
>--
>Billy Cravens
>HR Web Development, Sabre
>[EMAIL PROTECTED]
>
>Palyne Gaenir wrote:
>
> > I have some apps that allow file uploads.  I don't specify the mime
> > types allowed because it needs to be open to nearly anything the
> > clients want to upload, from images to java to pdf to spreadsheets
> > and docs etc. etc.  However, I would like to make it so that com,
> > exe, bat, and file extensions like that will not be accepted.  I
> > realize I could do this with a simple CFIF on the value of the file
> > field, but I am wondering if there is some way to "restrict" as well
> > as to "allow" filetypes in the CFFILE tag.  None of my books mention
> > this so I am guessing not but I thought I would ask the experts
> > anyway.
> >
> > Palyne
> > ScienceHorizon
> >
> > 
>-------------------------------------------------------------------------
> > This email server is running an evaluation copy of the MailShield anti-
> > spam software. Please contact your email administrator if you have any
> > questions about this message. MailShield product info: 
>www.mailshield.com
> >
> > -----------------------------------------------
> > To post, send email to [EMAIL PROTECTED]
> > To subscribe / unsubscribe: http://www.dfwcfug.org
>
>
>
>
>
>
>-------------------------------------------------------------------------
>This email server is running an evaluation copy of the MailShield anti-
>spam software. Please contact your email administrator if you have any
>questions about this message. MailShield product info: www.mailshield.com
>
>-----------------------------------------------
>To post, send email to [EMAIL PROTECTED]
>To subscribe / unsubscribe: http://www.dfwcfug.org

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to