The MIME tag reports the content type exactly as in the MIME encoding. What
you can do is make mappings with the file extension like:
.gif=image/gif
.jpg=image/jpeg
etc.
Not the easiest thing in the world but it can be done...
Regards,
Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
www.CoolFusion.com
============================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
============================================================
Check out inFusion Mail Server - the world's most configurable email server
----- Original Message -----
From: Guillermo Dewey <[EMAIL PROTECTED]>
To: inFusion Support List <[EMAIL PROTECTED]>
Sent: Monday, June 19, 2000 11:28 PM
Subject: [iMS] ContentType
> Hello
>
> does anybody know if there is a way of knowing the CONTENTTYPE of each
> attached file on a raw file?
>
> I am making a safer way on the infusion mail code to download files using
> the CFCONTENT , something like
>
> <CFCONTENT
> type="#url.type#"
> file="#AttachRoot##session.userid#/#url.file#">
>
>
> but when using the ODSMIME ContentType I allways get
> application/octet-stream as a result even if its a gif or doc file.
>
>
>
> ********************************************
> * Ing. Guillermo Dewey Guerra
> * Metro Cybercomercio Mexico
> * [EMAIL PROTECTED]
> * ICQ: 25876549 (GDewey)
> *
> * http://www.metro.com.mx
> * http://www.ablecommerce.com.mx
> *
> * Tel. (011) (52) (8) 3-90-7000
> * Fax (011) (52) (8) 3-90-7001
> * Cel. (011) (52) (044) (8) 3-09-24-16
> * Monterrey N.L. Mexico
> ********************************************
>
========================================================================
This list server is Powered by iMS
'The Swiss Army Knife of Mail Servers'
--------------------------------------
To leave this list please complete the form at
http://www.CoolFusion.com/iMS.htm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================