It's early and I haven't had my coffee yet but I think what you're looking
for is something like this:

<cfif Form.filea not contains ".gif">

-Novak

----- Original Message -----
From: "Jeremy Bunton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 6:45 AM
Subject: <cfif does not contain> for file input


> Hello,
>
> I am trying to do something like bleow before I do a file upload to check
> for an extension and it always hits the cflocation. Makes me think maybe
the
> file feild is not being read properly. If I take the <cfif> out it uploads
> fine.
>
>
> <cfif Form.filea does not contain ".gif"  and Form.filea does not contain
> ".jpg" and Form.filea does not contain ".jpeg">
> <cflocation url="gaddproject.cfm?error=yes">
> <cfelse>
> <cffile action="UPLOAD"
destination="C:\Inetpub\wwwroot\GLABNEW\projectsnew"
> nameconflict="overwrite" filefield="filea">
>
>
> </cfif>
>
> I also tried the accept="image/gif,image/jpg, image/jpeg" in the <cffile>
> but for some reason it would throw an error on jpeg uploads, so i fugured
> the above would work.
>
>
> Jeremy
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to