FNP8_SetFileMimeType
Associates a custom MIME type with a file extension for documents that are uploaded to the FileNet P8 system.
Member of namespace
FileNet P8Syntax
bool FNP8_SetFileMimeType (StrParam)
Parameters
- StrParam
- The file extension and the associated MIME type separated by a comma.
Returns
Always True.Level
All levels.Details
Use this action to set the MIME (Multipurpose Internet Mail Extensions) type for uploaded documents with the specified file extension. This action overrides the library’s default mapping of the file extension to a MIME type.
The following table shows the default mappings of file extension to MIME type. Any
unlisted file type is mapped to the generic MIME type application/octet-stream.
| ai | application/illustrator |
|---|---|
| avi | video/x-msvideo |
| bmp | image/bmp |
| doc | application/msword |
| docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| dwg | image/vnd.dwg |
| dxf | image/vnd.dxf |
| gif | image/gif |
| htm | text/html |
| html | text/html |
| ico | image/x-icon |
| jpe | image/jpeg |
| jpeg | image/jpeg |
| jpg | image/jpeg |
| jpgv | video/jpeg |
| m4v | video/x-m4v |
| mov | video/quicktime |
| mp4 | video/mp4 |
| mpeg | video/mpeg |
| mpg | video/mpeg |
| mpp | application/vnd.ms-project |
| mpv | video/mpv |
| msg | application/msoutlook |
| ogg | application/ogg |
| pcx | image/x-pcx |
| application/pdf | |
| pic | image/x-pict |
| png | image/png |
| ppt | application/vnd.ms-powerpoint |
| pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
| qt | video/quicktime |
| rgb | image/x-rgb |
| rtf | text/richtext |
| tif | image/tiff |
| tiff | image/tiff |
| txt | text/plain |
| vsd | application/vnd.visio |
| wmd | application/x-ms-wmd |
| wmv | video/x-ms-wmv |
| wmx | video/x-ms-wmx |
| xls | application/vnd.ms-excel |
| xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| xml | text/xml |
- Example:
FNP8_SetFileMimeType(".rar,application/x-rar-compressed")