putnonxml

Upload and store non-XML data document(s) into an XML Library.

Documents are uploaded in POST multipart, then stored as non-XML documents.


HTTP Request: POST

Parameters:

Name Value Description
path Path the Document will have in the database. Can be specified explicitly or as the remainder the HTTP URL.
data

contents of the data document.

This parameter is generally passed as a File part, but can also be a string value.

path2 Library path of additional data document.
data2

contents of additional data document.

path3 Library path of additional data Document ...
data3

contents of additional data document ...

library Name of Library used (can be empty if exactly one Library in server).

Response:

   mime-type: text/plain

For each document that could not be generated, return a line containing the error code, the destination path of the Document, and the error message separated by tabs.

The last line is of the form: IMPORT ERRORS #errors, where #errors the number of import errors. Therefore a completely successful put returns a single line 'IMPORT ERRORS 0'.

 

Error codes:

AccessControl
when the user is not allowed to write on a Document or Collection.
XMLData
Conflicting path with a Collection.