CWS API: how to set right mime type when upload document content
Hi all,
using cws API, and then docman and content services, how can you pass the mime type of a document when loading its content?
When you fill the FileAtts structure with the full filename (also with the extension part), then CS set the mime type using the extension if it is known, but if the filename does not contain the extension part, CS set the mime type to octet stream.
How is it possible to programmatically pass the mime type?
Thanks in advance
Comments
-
Hi Matteo,
CWS sets the mimetype for an upload based on the file extension of the attachment. A server configuration provides the mapping between extensions and mimetypes.
To set a different mimetype after an upload an update to the item would be additionally needed. (This can be done with a simple UpdateVersion().)
-chris
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 149 General Questions
- 148 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories