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

Syntax

Visual Basic (declaration)
Public Function UploadDocumentWithHandler2( _ 
ByVal AuthenticationTicket as String, _ ByVal Path as String, _ ByVal UploadHandler as String, _ ByVal VersionComments as String, _ ByVal MPVersionMajor as short, _ ByVal MPVersionMinor as short, _ ByVal MPVersionRevision as short) as XmlNode

C# (declaration)
public XmlNode UploadDocumentWithHandler2( 
string AuthenticationTicket, string Path, string UploadHandler, string VersionComments, short MPVersionMajor, short MPVersionMinor, short MPVersionRevision)

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.
MPVersionMajor
    short New Major Version number
MPVersionMinor
    short New Minor Version number
MPVersionRevision
    short New Revision number

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.
The specified version number must be greater than the old one.