IBMCM_SetMimeType
Sets the mime type for the upload document.
Syntax
bool IBMCM_SetMimeType(string mimeType)Parameters
String mimeType: the mime type.
Parameters
Smart parameter is supported.
Returns
True, if the mime type is successfully set. Otherwise, False.Level
Document level.Details
Set the mime type for the upload document. This action is needed when you are uploading non-tiff files.When you call this action at the document level, the same mime type is applied to all of the files in the document DCO.
This action must be called before the document and page upload actions.
| MIME Types | File Extensions |
|---|---|
| application/msword | dod, dot, rtf |
| application/octet-stream | bin, dms, lha, lzh, exe, class |
| application/pdf | |
| application/rtf | rtf |
| application/lotus-1-2-3 | 123, wk4, wk3, wk1, wks, wg1 |
| application/lotus-freelance | prz, pre |
| application/vnd.ms-excel | xls, xlt, xlm, xld, xla, xlc, xlw, xll |
| application/vnd.ms-powerpoint | ppt, pot, ppa, pps, pwz |
| application/vnd.visio | vsd |
| audio/basic | au, snd, ulw |
| audio/mpeg | mpeg, mpg, m1s, m1a, mp2, mp3, mpm, mpa, mpga |
| audio/x-aiff | aif, aiff, aifc |
| audio/x-midi | midi, mid, smf, kar |
| audio/x-wav | wav |
| image/bmp | bmp, dib |
| image/gif | gif |
| image/jpeg | jpeg, jpg, jpe, jfif, pjpeg, pip |
| image/tiff | tiff, tif |
| text/html | html, htm, shtml, plg |
| text/plain | txt, text |
| text/xml | xml, dtd |
| video/mpeg | mpeg, mpg, mpe, m1s, m1v, m1a, m75, m15, mp2 |
| video/quicktime | mov, qt |
- Example:
-
IBMCM_ SetMimeType("image/tiff”)This example sets the mime type to "image/tiff".