IO module
The I/O module allows to manipulate files of all modules : workflow, data universe, library…
Download
This flow allows you to download a file from a Process objects to any other modules. It does not have an XML/JSON response stream since the response will directly be the stream of the downloaded file.
URL
http://myvdocserver/vdoc/navigation/flow?module=io&cmd=download&_AuthenticationKey=...
Request flow
<?xml version="1.0" encoding="UTF-8"?>
<download xmlns:d1="http://www.axemble.com/vdoc/library">
<header login="sysadmin" />
<body>
<resource class="java.io.File">
<header guid="123456789" />
</resource>
</body>
</download>
Parameter | Description | Mandatory |
---|---|---|
guid | This is the reserved file that you want to download | Yes |
Upload
This flow allows to upload a file on the server. It does not have an XML/JSON stream as input since the input will be the stream of the uploaded file.
URL
http://myvdocserver/vdoc/navigation/flow?module=io&cmd=upload&_AuthenticationKey=...
Response flow
<?xml version="1.0" encoding="UTF-8"?>
<response status="success" message="File successfully uploaded." detail="123456789" />
The return of this flow sends a standard response with the GUID of your upload in the detail attribute.
If the upload failed, it will redirect to a standard XML flow error with the problem description.
Sources :