Uploads a new document or creates a new version of an existing document in byte array format to the specified path. (with version comment)

Syntax

Visual Basic (declaration)
Public Function UploadDocumentWithHandler1( _ 
ByVal AuthenticationTicket as String, _ ByVal Path as String, _ ByVal UploadHandler as String, _ ByVal VersionComments as String) as XmlNode

C# (declaration)
public XmlNode UploadDocumentWithHandler1( 
string AuthenticationTicket, string Path, string UploadHandler, string VersionComments)

Parameters

AuthenticationTicket
    string inforouter ticket
Path
    string An infoRouter document path that to be created or updated
UploadHandler
    string The upload handler
VersionComments
    string The comments of the author for the uploaded document.

Return Value

returns xml fragment.
<response success="true" error="">
if success = "true", the document has been uploaded.
if success = "false", the error attribute returns the error description.

Remarks

The file must be uploaded before calling this method.
The caller must have at least "Add" permissions on the folder.
If the specified path does not exist, the path will be created.
If a document with the same name already exists in the same path, a new version of the existing document will be created.