OK, I didn't explain.  I'm not trying to open the file in a browser You see,
the info can be returned in the users choice of three ways, To the browser,
to an Excel Spreadsheet or to an ASCII file (for MAC users or others who
don't have Excel).  Browser rolls the page to the info.  Excel does not roll
the page, but rather returns the prompt to run or save to disk.  ASCII file
does the same, except that instead of saying  file xyz.txt, it displays the
script name (whatever.cfm) - the problem is that the users machine does not
know how to open a .cfm file.

Hope this explains better <g>

Dave



----- Original Message -----
From: "JustinMacCarthy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 7:56 AM
Subject: Re: CFContent MIME Types


Hi Dave

Try  added this before your Cfcontent tag:

to display in the browser:

<cfheader name="Content-Disposition" value="inline; filename="XYZ.txt">

to download :

<cfheader name="Content-Disposition" value="attachment; filename="XYZ.txt">


~JustinMacCarthy


----- Original Message -----
From: "Dave Hannum" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 12:50 PM
Subject: CFContent MIME Types


> Is there a list of the different MIME types that should be used with
> CFContent?  I'm returning a .txt file, but when it comes up on the user's
> machine, it comes up with the name of the script (script.cfm) instead of
the
> file name (xyz.txt).  I think it has something to do with the MIME type in
> the CFContent tag.
>
> Thanks,
> Dave
>
>
> =================================
> "What we need is a list of specific unknown problems we will encounter"
>
> David Hannum
> Web Analyst/Programmer
> Ohio University
> [EMAIL PROTECTED]
> (740) 597-2524
>
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to