CMISUploadPage

Upload the current DCO page to the CMIS server.

Member of namespace

CMISClient

Syntax

bool CMISUploadPage(string cmisUploadedName, string cmisUploadDirectory, 
string mimeType)

Parameters

cmisUploadedName
Type: string
cmisUploadDirectory
Type: string
mimeType
Type: string

Parameters

  • cmisUploadedName : The desired final name of the file in the repository.
  • cmisUploadDirectory : The full path for the folder within the repository where the file will be stored.
  • mimeType : The mime type of the uploaded file.

Smart parameters are supported for all parameters.

Returns

True if the file is successfully uploaded. Otherwise, False.

Level

All levels.

Details

This action uploads the current DCO page to the configured repository.
Note: Objects created on the CMIS server may not be immediately accessible. For example, the indexing service on your CMIS server may run on a configured interval, so your new object may not be available until the indexing service completes. If you are having trouble accessing newly created objects, check the settings and documentation of your CMIS server to determine when objects should become available.

A record of uploaded files will be placed in the file UploadRecord.xml in the batch directory.

Example:
SetCMISDocUploadType("cmisbook:poem")
SetCMISDocUploadProperty("cmisbook:author", "Edgar Allan Poe")
SetCMISDocUploadProperty("cmisbook:poemtitle", "The Raven")
CMISUploadPage("MyFile.txt", "/MyCMISDir", "text/plain")           

This set of actions sets property values of the page that will be uploaded, then uploads the page. The current page is placed into the \MyCMISDir folder and be given the mime type of text/plain.