I believe the CFCONTENT tag is specifically looking its own predefined
content types (check the drop down in Studio).  It is looking for a MIME
type like (text/html,text/plain,image/tiff,image/jpeg,image/gif).  my
experience has been that when you do not provide one of the MIME types it is
looking for, instead of grabbing the file I pointed it to, it grabs the page
the tag is on. 

I have a situation where users can upload files.  I use the CFFILE tag to
upload these files to a dir off of the www root.  Thinking that I would be
smart, I store the MIME types exposed by the CFFILE tag when the file is
initailly uploaded in a database for later use by the CFCONTENT tag when the
file is retrieved (using file.ContentSubType or File.ContentType)

The problem is that the MIME type exposed by CFFILE for the file "myPic.gif"
is "GIF".  CFCONTENT is looking for "image/gif" and instead grabs the page
it is sitting on for download instead of the file I passed to it.  Am I
loosing my mind here?  

Joshua




    



-----Original Message-----
From: Ron Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 6:01 PM
To: [EMAIL PROTECTED]
Subject: RE: OT CFCONTENT MIME TYPES


You can modify the cfcontent tag to include any mime types you want by
editing the VTM files in the CFML folder under Program TagDefs


-----Original Message-----
From: Joshua White [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 11:16 AM
To: '[EMAIL PROTECTED]'
Subject: OT CFCONTENT MIME TYPES


Has anyone played with CFCONTENT?


This is a pain in the butt!  I upload a file to a directory off of the root
using CFFILE.  It would be to easy this think that the MIME type exposed by
the file.ContentSubType or File.ContentTypes would match those required by
the CFCONTENT tag.  Does anyone know of a work around for this?

Joshua White



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CONFIDENTIALITY NOTICE: If you have received this e-mail in error,
please immediately notify the Sender by e-mail at the address
shown and delete all copies of this message.  This e-mail transmission
may contain information that is proprietary, privileged,
confidential, or otherwise legally exempt from disclosure.  If you
are not the named addressee, please be aware that you are not
authorized to open, read, print, retain, copy, or disseminate
this message or any part of it.  Thank you for your compliance.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

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



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, 
please immediately notify the Sender by e-mail at the address 
shown and delete all copies of this message.  This e-mail transmission 
may contain information that is proprietary, privileged, 
confidential, or otherwise legally exempt from disclosure.  If you 
are not the named addressee, please be aware that you are not 
authorized to open, read, print, retain, copy, or disseminate 
this message or any part of it.  Thank you for your compliance. 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to