Skip to main content
Inspiring
April 10, 2007
Question

file download question

  • April 10, 2007
  • 2 replies
  • 237 views
I know that I can download a file using <cfheader name="Content-Disposition" value="attachment;filename=xyz"/>
<cfcontent type="application/msexcel" reset="true"/>

But I don't know why it works and it's driving me crazy. I have looked up HTML header values and can't seem to find attachment anywhere. I have scoured the livedocs but can't find a list of all possible values of cfheader or cfcontent. Can anyone please point me in the direction of some more information on this subject.


P.S.
In an unrelated topic, I am having trouble getting the data that I am posting from a form request to display fresh data and is only displaying the cached page. I am not sure which option i need to change to get live data each time.
    This topic has been closed for replies.

    2 replies

    Inspiring
    April 10, 2007
    I have looked up HTML header values and can't seem to find attachment
    anywhere.

    The header is "Content-Disposition" it has a value of
    "attachment;filename=xyz". Try googling Content-Disposition and I think
    you will find some enlightening links. [ http://www.ietf.org/rfc/rfc2183.txt

    As for the cfcontent type, you are talking 'mime types' there. Again
    googling for "mime types" should provide oodles of informative links.
    [ http://en.wikipedia.org/wiki/MIME or
    [ http://www.iana.org/assignments/media-types/

    Inspiring
    April 10, 2007
    content types are basically the MIME type of an object ... if you google MIME Types you will probably find something.