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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to