Sorry it is enctype="multipart/form-data". No asterisks... i think that was due to me copy and pasting in and Google attempt to do some richtext formatting in bold.
J.J. On 7/17/07, Will Peavy <[EMAIL PROTECTED]> wrote: > > Thanks for all your responses! > > J.J. - I put the type in my form, so I have this: > <form name="form1" method="post" action="contactmailer.cfm" > type="*multipart*/*form-data*"> > > And I'm getting: > ' Invalid content type: "". CFFILE action="upload" requires forms to use > enctype="multipart/form-data".' > > Where should I put this? <cffile action="upload" filefield="attachform" > destination="#GetTempDirectory()#"> > > > > >at first glance you need to make sure that you have > >type="*multipart*/*form*-data" > >in your <form> > > > >Second you will need to do something with the submitted file form so you > >would do: > > > ><cffile action="upload" filefield="attachform" > >destination="#GetTempDirectory()#"> > > > > > >Then do the cfmail: > > > ><cfmail > >type="HTML" > >to="[EMAIL PROTECTED]" > >from="#form.email#" > >subject="This is a test" > >server="vccmail.valenciacc.edu"> > ><cfmailparam file="#cffile.serverDirectory#/#cffile.serverFile#"> > ></cfmail> > > > >That should do it for you. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2918 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
