Bug 27597

Summary: <mt:attach>: set Content-Type header
Product: Taglibs Reporter: Marc Guillemot <mguillemot>
Component: Mailer TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Path to set the Content-Type of an attached file

Description Marc Guillemot 2004-03-11 11:06:06 UTC
The <mt:attach> tag attaches files without specifying any Content-Type
information. This causes pdf files for instance to be sent as
"application/octet-stream" instead of "application/pdf".

It would be wise to ask the servlet container for the content type of the file. 

Further the tag could be refactored to give the possibility to use the "type"
attribute to set explicitely the content type to use. Currently this attribute
is only allowed for content specified in the body of the tag.
Comment 1 Marc Guillemot 2004-03-11 11:07:13 UTC
Created attachment 10755 [details]
Path to set the Content-Type of an attached file
Comment 2 Henri Yandell 2009-11-29 19:39:59 UTC
Resolving. Taglib has been retired.