1 Reply Latest reply on Feb 24, 2016 1:00 AM by haxtbh

    When serving a file with CFcontent, all processing stops


      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#"


              getAsBinary="yes" />


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

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