Just out of curiosity You should check that out. When I use the cfcontent my browsers asks if I want to open or save the file, but the filename has an. For example, an engineering firm might upload CAD files, Office files, PDFs, images, and proprietary formats that you have never seen before. In fact you can readily use a non existent file without a full path and it will work just as well.
|Published (Last):||28 December 2012|
|PDF File Size:||8.37 Mb|
|ePub File Size:||16.26 Mb|
|Price:||Free* [*Free Regsitration Required]|
Garn Check the file name of the PDF. Email Twitter Facebook LinkedIn. Blog Sofware by Ray Camden. We found another way to work it. This works a treat. Thanks, Todd, and happy to help, John. I can get this to work in FF, but not IE9.
I have a CFC method somewhere that replaces around 30 commonly used symbols. So at least its a bug: But again, please do not offer those clarifications here. Also, do you mean to ask how to do it from CF, necessarily? Now I get duplicate results for some odd reason. Sign up using Email and Password.
Have them both, and you definitely get some sort of bug. I used some Ben Nadel cfclntent code to check this, and his code used static text in the cfsavecontent, used a static filename, and still used toBinary and Tobase64 around the cfsavecontent name in the cfcontent tag, but still no download box This can fool you if you do development running a desktop running CF — because your local machine has all the MIME mappings of the crowded subway that is a developers workstation.
Instead, the variable is simply not set at all. We are on CF9 with IE9, using coldbox 2. You ccontent have to write your own headers. Why might you do this? From that information, the handler function will manipulate that data, and use this logic to display the download dialog cc8 for a Word document: One thing that may trip up readers is that you use a variable called boundary, without explaining to folks what it is.
TOP Related Posts.
CF8 CFCONTENT PDF
Tubar That means that after you call the getMimetype function you need to check to make sure that the variable contains a string. Have them both, and you definitely get some sort of bug. Sometimes you need to be able to specify the MIME type using Cfcontent or inline headers to force the file to open in the proper application. Travis, I am thinking it is an IE9 issue as well. It will be regarded more seriously coming from you as a need than from me just pointing out an observed difference that perhaps no one would care about.
Taum So, I tried to create a simple-as-possible case where this happens. Charlie Arehart Related Categories: How would you output it? No df8 did I post a comment than I realised my error. That means that after you call the getMimetype function you need to check to make sure that the variable contains a string.