Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

When serving a file with CFcontent, all processing stops

$
0
0

I'm creating a PDF with cfpdf, then using cfhttp, cfheader, and cfcontent to open up a save dialog.  How do I get the page to move to another page after the save dialog is shown?  As soon as I add cfcontent to the page, all other processing is stopped (the save dialog pops up, but I can't create a button to move to the next page, or move there automatically).

 

<cfhttp url="http://XXX.com/#variables.GeneratedPDFName#"

        method="get"

        getAsBinary="yes" />

 

<cfheader name="Content-Disposition" value="attachment; filename=File.pdf" />

<cfcontent type="application/pdf" variable="#cfhttp.fileContent#" />

 

Thanks


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>