Skip to main content
Inspiring
January 19, 2016
Answered

problem with cfcontent

  • January 19, 2016
  • 8 replies
  • 799 views

Hello,

I have a problem with cfcontent for I can pass the document name. It defaults to the name of my program.

Thanks for your help

Tank you

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer WolfShade

    Try adding CFHEADER to the mix.

    <cfheader name="Content-Disposition" value="attachment; filename=#_PUT_FILENAME_HERE_#">

    <cfcontent type="application/epub+zip" file="#desti#" deletefile="no">  <!--- Are you sure that epub+zip is correct?? --->

    HTH,

    ^_^

    8 replies

    WolfShade
    Legend
    January 19, 2016

    I hate to say it (because I hate to hear it), but we can't really help you unless we see your code.

    V/r,

    ^_^

    ZNBAuthor
    Inspiring
    January 19, 2016

    Excuse my

    <cfcontent 

         type = "application/epub+zip" 

         file = "#desti#"

         deleteFile = "No"

      >

    EddieLotter
    Inspiring
    January 19, 2016

    Use a cfheader tag with "content-disposition" before the cfcontent tag to supply the file name you desire.

    See the examples on this page.

    Cheers

    Eddie