And on the previous page
<input name="filename1" type="file" />


On Sun, Aug 14, 2011 at 12:27 PM, Greg Morphis <[email protected]> wrote:

> On the processing page,
>
> if your form field is titled filename1
>
> <cfset destination = expandPath("./files")>
>  <cfif len(form.filename1)>
>        <CFFILE ACTION="UPLOAD"
>             FILEFIELD="FORM.filename1"
>             DESTINATION="#destination#"
>             NAMECONFLICT="Overwrite">
>         <cfset file1 = "#CFFILE.ServerDirectory#\#CFFILE.ServerFile#">
>        <cfset filelist = ListAppend(filelist,file1)>
> </cfif>
>
>   <cfmail
> to="#name# <#qBroadcast.mem_email#>"
>  from="#form.from#"
> subject="#form.subject#"
> type="html">
>  <cfif len(form.filename1)>
> <cfmailparam file="#file1#">
>  </cfif>
>                </cfmail>
>
>
> On Sun, Aug 14, 2011 at 12:17 PM, Mo Lay <[email protected]> wrote:
>
>>
>> >Sure - you use the <input type='file" ...> html tag and once the form
>> >is submitted, CF can process it. (I've got a blog entry on just that -
>> >I think I posted it earlier, if not, let me know.)
>> >
>> >
>> >>
>>
>> Great , could not find that blog wiered, can you point it to ne please..
>>
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:5441
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to