defines whether files are sent in one request
var vault = new dhx.Vault("vault_container", {
uploader:{
// obligatory, the path for upload
target:"/upload"
singleRequest:true
}
});
Note that to receive download links after upload you need to:
updateFromResponseThe server must return a single JSON object with the following structure:
{
"<file_id>": {
"link": "<download_url>",
"status": "<status>"
}
}
where:
<file_id> is the temporary file ID sent from the clientlink is the download URL for the filestatus is the upload result returned by the server ("uploaded" or "failed")For example:
{
"u1776937904848": {
"link": "/files/simple2.txt",
"status": "uploaded"
},
"u1776937904849": {
"link": "/files/simple1.txt",
"status": "uploaded"
}
}