form.upload file is NOT the uploaded file. It's more of a .... pointer. When you use cffile/action=upload, you are telling CF to "process" the file and give you a handle to it's location. That's what the CFFILE structure is returning to you - the server directory and server file. That should be covered in the guide. That's what you attach to the email.
On Mon, Aug 15, 2011 at 10:37 AM, Mo Lay <[email protected]> wrote: > >>http://www.coldfusionjedi.com/index.cfm/2007/10/12/File-Upload-Guide >> >> >>> > > Hi raymond, > i followed the example you provided on the blog but( you are providing away > to upload a file to a specific foler right ? ) > i am looking to attach the file to my existing cfmail that i send after the > form is processed.. > > > i am having the following code in my form toi check for the file i want to > attache to my email: > > <input type="file" name="uploadfile" /> > > on the processing file i have the following code : > > > <cfmail to="#FORM.EMAIL_ADDRESS#" > from="[email protected]" > subject="Your Project Resource" > type="html"> > > <cfmailparam file="#FORM.uploadfile#"> > > ........ > ........ > ....... > > </cfmail> > > i am getting the following error : > The resource C:\test1.txt was not found. > The root cause was: . > > The error occurred in E:\onesource\tools\CEFrontDoor\CEResource\insert.cfm: > line 478 > > 476 : type="html"> > 477 : > 478 : <cfmailparam file="#FORM.uploadfile#"> > 479 : > 480 : Hi, #FORM.NAME# <br /><br /> > > > > am i doing something wrong ?? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5449 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
