How bout creating a virtual mapping to the network share in the web server? That would allow you to point to files as if they were in a sub-directory of the web root.
The only other solution I know of is to create a switch statement and load it up with all the mime types you can think of. Here's a comprehensive list of mime types http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html +-----------------------------------------------+ 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:18 AM To: CF-Talk Subject: RE: Getting MIME Type for a file True, thing is, these files are gonna be stored on a network share somewhere else... I was hoping to use cold fusion to host out the file instead :( Thanks anyways though... -----Original Message----- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 11:14 AM To: CF-Talk Subject: RE: Getting MIME Type for a file 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> ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists