I lied. The mime type was correct, but the reference for it wasn't. I pulled
the mime type off my own code. The O'Reilly Nutshell books are excellent
references, but mine didn't actually have this mime type. I've used
Netscape's download preferences to look them up before.

If it helps this is the code in my download page using cfcontent:

  <!-- code example -->

  <cfinclude template="filelookup.cfm">

  <CFHEADER
   NAME="content-disposition"
   VALUE="attachment; filename=#filename#.#fileextension#">

  <cfcontent
   type="#mimetype#"
   file="w:\serverpath\#filename#.#fileextension#"
   deletefile="No">

  <!-- end code example -->

That's it. The "filelookup.cfm" is a page that is just a cfswitch lookup to
get the proper filenames, extensions and mime types.

Some of the mime types I use in it are:

application/x-msaccess for .mdb
application/x-zip-compressed for .zip
application/x-msexcel for .xls


Kevin Graeme


> -----Original Message-----
> From: Kevin Graeme [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 2:13 PM
> To: CF-Community
> Subject: RE: ms access mime type
>
>
> mimetype = "application/x-msaccess"
>
> My favorite desk reference for this kind of thing is O'Reilly's Web Design
> in a Nutshell or Webmaster in a Nutshell.
>
> Kevin Graeme
>
> > -----Original Message-----
> > From: Smith, Matthew P -CONT(DYN) [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 04, 2002 1:55 PM
> > To: CF-Community
> > Subject: ms access mime type
> >
> >
> > I am trying to cfcontent an access mdb.  What is the proper
> mime type?  I
> > searched the macromedia forums to no avail.  Is there a good
> reference for
> > translating extensions to mime types?
> >
> > Thanks.
> >
> > Matthew P. Smith
> > Web Developer, Object Oriented
> > Naval Education & Training Professional
> > Development & Technology Center
> > (NETPDTC)
> > (850)452-1001 ext. 1245
> > [EMAIL PROTECTED]
> >
> >
> 
______________________________________________________________________
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

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to