For Document objects, you can set the MimeType property for a specific document version while it is a reservation object (at creation time and on subsequent check-outs). However, every time you check in a document, its MimeType property value reverts to its system-assigned value unless you explicitly set it again.
For Annotation and CmThumbnail objects, you can set this property at any time.
For DocumentClassificationAction objects, the MimeType property specifies the type of content that a document must hold in order to allow it to be auto-classified; you can set this property at any time.
Each content element that is attached to a document or annotation has its own MIME type, which is specified by its ContentType property. If you do not specify the MimeType property for a document or annotation, it is automatically set by the Content Platform Engine to the value of the first content element, regardless of whether it is a ContentTransfer or ContentReference object.
Although Content Platform Engine does not enforce the format of this property's value, a MIME format string consists of a content type, a content subtype, and an optional parameter in the format: "content type/subtype[;parameter]", for example, "text/html".
MIME defines the following content types:
- text: Represent textual information in a number of character sets. A charset parameter may be used (for example, "text/plain;charset=us-ascii"). Some subtypes: plain, html, richtext.
- image: Represents still images. Some subtypes: jpeg, gif.
- audio: Represents audio or voice data. Some subtypes: wav, au.
- video: Represents video data or moving-image data. Some subtypes: mpeg, mp4.
- message: Encapsulates an entire formatted message. Some subtypes: rfc822, partial, external-body.
- multipart: Combines several body parts of potentially different types and subtypes. Some subtypes: mixed, alternative, parallel, digest.
- application: Represents application data (such as executables) or binary data.
The following MIME types are specific to FileNet:
- application/x-filenet-declarerecordtemplate: Record template.
- application/x-filenet-documentassembly: Document assembly.
- application/x-filenet-external: An object that contains a single ContentReference content element.
- application/x-filenet-external-is: External Image Services document.
- application/x-filenet-publishtemplate: Publish template.
- application/x-filenet-scenariodefinition: Scenario definition document.
- application/x-filenet-search: Stored search.
- application/x-filenet-searchtemplate: Search template.
- application/x-filenet-workflowdefinition: Workflow definition document.
- multipart/x-filenet-external: An object that contains multiple ContentReference content elements only.
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Property MimeType As String |
C# |
---|
string MimeType { get; set; } |
Visual C++ |
---|
property String^ MimeType { String^ get (); void set (String^ value); } |
JavaScript |
---|
function get_mimeType(); function set_mimeType(value); |
Remarks
Metadata
AllowsDefaultChange: false
Cardinality: SINGLE
CopyToReservation: false
DataType: STRING
IsHidden: false
IsOrderable: true
IsSearchable: true
IsValueRequired: false
MaximumLengthString: 96
ModificationAccessRequired: WRITE
PersistenceType: OWN_COLUMN
RequiresUniqueElements: false
Settability: SETTABLE_ONLY_BEFORE_CHECKIN
TargetAccessRequired: READ