• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

problem with cfcontent

Contributor ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

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 youPresentation.gif

Views

482

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 19, 2016 Jan 19, 2016

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,

^_^

Votes

Translate

Translate
LEGEND ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

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,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

Excuse my

<cfcontent 

     type = "application/epub+zip" 

     file = "#desti#"

     deleteFile = "No"

  >

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

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,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

This is the solution! thank you very much !

epub+zip is good for epub !

But, I know not group items into a epub ;-(((((

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

Glad to hear that it's working as you expect.  Could you, please, mark my answer as correct, so that future searchers can find it?

V/r,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

Thank you! 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 19, 2016 Jan 19, 2016

Copy link to clipboard

Copied

LATEST

I moved the "Correct Answer" to the one that actually answered the question - for posterity.

-Carl V. - Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation