DM_SetContentType

Sets the content type to define in the repository for the object, for example TIFF, JPEG, DOC.

Syntax

bool DM_SetContentType (StrParam)

Parameters

The repository defined type for this page. Smart parameters are supported.

Returns

Always True.

Level

Any level.

Details

Sets the type for the page to be uploaded. This type must be pre-defined in the repository. This action does not test that the specified type exists in the repository. If the specified content type is incorrect, the upload action will report the error.

This action must be called prior to DM_UploadPage or DM_UploadDocument.

Example:
DM_SetFolderName("/folder1/folder2")
DM_SetContentType("tiff")
DM_SetObjectName("@ID")
DM_UploadDocument()