Uploads a new document (never an existing-document version) to the specified folder path using a pre-staged upload handler, with extended options via an XML parameters string. The folder path and document name are specified separately, allowing the caller to place the new file independently of any existing document path.
Note: The method name contains a typo (“Width” instead of “With”) -“ this is the original API name and is preserved for backward compatibility.
/srv.asmx/UploadNewDocumentWidthHandler
/srv.asmx/UploadNewDocumentWidthHandler?authenticationTicket=...&folderPath=...&documentName=...&uploadHandler=...&xmlParameters=.../srv.asmx/UploadNewDocumentWidthHandler (form data)http://tempuri.org/UploadNewDocumentWidthHandler| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
folderPath |
string | Yes | The infoRouter folder path where the new document will be created (e.g. /Finance/Reports). The folder must already exist. |
documentName |
string | Yes | The file name for the new document including extension (e.g. Q1-2024-Report.pdf). |
uploadHandler |
string (GUID) | Yes | The upload handler GUID returned by CreateUploadHandler after all chunks have been uploaded. |
xmlParameters |
string | Yes | XML string with additional upload options. Pass an empty string "" for default behavior. Supports the same keys as UploadDocument4. |
1. CreateUploadHandler -' returns UploadHandler GUID + ChunkSize
2. UploadFileChunk -' repeat until LastChunk=true
3. UploadNewDocumentWidthHandler -' create the new document
The root element is <xmlparameters> and each option is an <item> element with NAME and VALUE attributes (same format as UploadDocument4):
<xmlparameters>
<item NAME="DESCRIPTION" VALUE="Quarterly financial summary"/>
<item NAME="KEYWORDS" VALUE="finance quarterly 2024"/>
<item NAME="VERSIONCOMMENT" VALUE="Initial upload"/>
<item NAME="PUBLISHOPTION" VALUE="Publish"/>
<item NAME="SENDEMAILS" VALUE="true"/>
</xmlparameters>
See UploadDocument4 for the full list of supported keys and valid values.
<root success="true" DocumentId="12345" VersionId="1000001" />
<root success="false" error="Invalid upload handler." />
The calling user must have write (upload) permission on the destination folder.
POST /srv.asmx/UploadNewDocumentWidthHandler HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&folderPath=/Finance/Reports
&documentName=Q1-2024-Report.pdf
&uploadHandler=a1b2c3d4-e5f6-7890-abcd-ef1234567890
&xmlParameters=<xmlparameters><item NAME="VERSIONCOMMENT" VALUE="Initial upload"/></xmlparameters>
UploadDocumentWithHandler3.folderPath must already exist. Use CreateFolder to create it first if needed.| Error | Description |
|---|---|
[900] Authentication failed |
Invalid or missing authentication ticket. |
[901] Session expired or Invalid ticket |
The ticket has expired or does not exist. |
Invalid upload handler. |
The GUID is not a valid or active upload handler. |
| Folder not found | The folderPath does not exist. |
| Access denied | The user does not have upload permission on the destination folder. |
SystemError:... |
An unexpected server-side error occurred. |