cfcontent deleteFile = “yes|no” file = “filename” reset = “yes|no” type = “file type” variable Previously, ColdFusion assumed a default file type of text/html. Now. Note: This tag executes only if it is enabled in the ColdFusion Administrator. cfcontent type = “file_type” deleteFile = “Yes” or “No” file = “filename” reset. If you haven’t used ColdFusion’s CFContent tag to stream data to the browser, either as an inline object, or as an attachment, you should at.

Author: Zulkim Maumuro
Country: Czech Republic
Language: English (Spanish)
Genre: Love
Published (Last): 6 April 2013
Pages: 500
PDF File Size: 16.76 Mb
ePub File Size: 12.63 Mb
ISBN: 540-6-69044-285-5
Downloads: 77671
Price: Free* [*Free Regsitration Required]
Uploader: Tazshura

Adobe ColdFusion * cfcontent

I am programming a CF application for an online university. They need to be able to upload files to the server, and then authorize students individually as to which files they can download. I’ve got this part written.

But the problem comes in downloading. For instance, if the file is an MP3, it coldfksion in and plays on my IE, but allows me to save it on Netscape. If the file is a Home Services Forums Advertise Contact.

  ASTM F1136 PDF

Using cfcontent

Login to Your Account. Obviously, this is not an acceptable solution. Please note that in all cases, I do NOT want the file to stream or open inside a browser. I want it to save on the user’s computer.

Am I using these two tags wrong? Or are they so basic that they are unreliable for controlling downloads across browsers?

It seems a shame that uploads can be controlled so perfectly, but downloading is sort of hit-or-miss. Using CFHeader ctcontent CFContent to control filedownloads When you specify the correct mime-type, the user’s browser takes over whatever default action the user has specified for that type of file.

Unfortunately, what it should coldfysion and what it does are two different things. Here is my code: I do not get ‘Save As’ dialogue in IE.

Is there another way to code this? I’m pretty sure that a zipped file would have to evoke the ‘Save As’ dialogue. What else would a browser do with it?


ColdFusion export to Excel using CFCONTENT doesn’t work anymore – Stack Overflow

However, if there is a cf solution without the custom tag, I’d sure like to know about it. You are the greatest! The first option did not work. The second one did: Thank you so much! By gmahler5th in forum Coldfusion – Advanced Techniques. By man jackals in forum Coldfusino ColdFusion.

All times are GMT. The time now is