CMISUploadFile
Upload a file to the CMIS server.
Member of namespace
CMISClientSyntax
bool CMISUploadFile(string fullyQualifiedFileName, string cmisUploadedName,
string cmisUploadDirectory, string mimeType)
Parameters
- fullyQualifiedFileName
- Type: string
- cmisUploadedName
- Type: string
- cmisUploadDirectory
- Type: string
- mimeType
- Type: string
Parameters
- fullyQualifiedFileName : The file name to upload with the full path specified.
- cmisUploadedName : The wanted final name of the file in the repository.
- cmisUploadDirectory : The full path for the folder within the repository where the file is 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 a file to the configured repository. You can optionally set properties of the uploaded file using the actions CMISSetDocUploadProperty and CMISSetDocUploadType.Note: Objects
that are created on the CMIS server
might not be immediately accessible by the client. For example, the
indexing service on your CMIS server
might run on a configured interval, so your new object might not be
available until the indexing service completes. If you are not able
to access newly created objects, check the settings and documentation
of your CMIS server
to determine when objects are available.
A record of uploaded files is placed in the file UploadRecord.xml in the batch directory.
- Example:
SetCMISDocUploadType("cmisbook:poem" SetCMISDocUploadProperty("cmisbook:author", "Edgar Allan Poe") SetCMISDocUploadProperty("cmisbook:Title", "The Raven") CMISUploadFile("C:\MyDir\MyFile.txt","MyFile.txt", "/MyCMISDir", "text/plain")The uploaded file is placed into the \MyCMISDir folder and be given the mime type of text/plain.