I used the code below to download an MS Word file to a default download folder. But I need the document to be downloaded to a specific location. How can I do this?
Code:
<cfcontent type="application/msword">
<cfheader name="content-Disposition" value="attachment;filename=Simple_run.doc">
You can use this code to save an MS Word document to particular location.
I made noticeEmail content as document. Happy coding.
<cfsavecontent variable="whatever">
<cfinclude template="noticeEmail.cfm">
</cfsavecontent>
<cffile action="WRITE" file="#WordFilePath#.doc" output="#whatever#">