store_upload_log
Store XML data in the user's home directory in the database.
Description
Store the upload log or an XML fragment in the user's home directory in the database. The upload log, if present, must be provided as the contents of a POST request. The item is stored with a key built by concatenating the string "upload_log_" and a unique alphanumeric string. The Key name is returned with the success status.
Parameters
- action
- store_upload_log
- xml
- (optional) A well-formed XML fragment to be stored.
Example URL
http://<host>:<port>/<context>/web/pub.xql?action=store_upload_log&xml=<value>
Successful Result
This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure.
Failed Result
Accessing this API feature requires the "Manage pubs" permission, and the function will throw a permission exception if the permission is not available.