I've run into this problem before...
I think the best way to solve it is to use a meta refresh and let the client
do the work.
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=#url.file#">
+-----------------------------------------------+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+
"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-----Original Message-----
From: Costas Piliotis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 11:08 AM
To: CF-Talk
Subject: Getting MIME Type for a file
I know the security considerations for this... I will be trapping that
security on this within the client's session as well, but nevertheless, does
anyone know how would I be able to get the mime type for this file?
<cfparam name="url.file" default="">
<cfif fileExists(url.file)>
<cfheader name="Content-disposition" value="attachment;
fileName=#url.file#">
<cfcontent type="?????" file="#url.file#" deletefile="No">
</cfif>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists