In lucee, does the cfdocument saveAsName work? tri...
# lucee
e
In lucee, does the cfdocument saveAsName work? tried a few versions, but doesn't appear so, but don't see it in in the code branch 6.2 i did see this older work item about it though [LDEV-3781] cfdocument attribute saveAsName not implemented - Lucee
e
hi, i am using in in 5.3.8.189 and its working
e
Thanks I'll have to see if we have a version that is that old I tried on 5.4.3.2 - works 5.3.6.61 - Works 6.0.3.1 - works I'll have to take a closer look, maybe its something in the syntax
e
if it helps, my context is: 1. Do a form post to cfm file in a new tab. 2. my cfdocument call looks like this
Copy code
<cfdocument format="pdf" saveasname="#saveFileName#.pdf">
	<cfoutput>#finalOutput#</cfoutput>
</cfdocument>
3. this displays the PDF in the browser (chrome), and when i click to download the file it prompts me to save it with the saveFileName
😀 1