adds a new file record to vault
fileData | object | the file object that will be added to vault |
status | string | the status of the file, can be either "added" or "uploaded" |
var fileData = {
name: "price.xls", // the name of the file, mandatory
size: 257412 // the file size, optional
};
myVault.addFileRecord(fileData, "uploaded");
if the status is set to "added", a file record will be uploaded to the server with the mode="custom" param and all the specified fileData
This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see API reference for the current version of dhtmlxVault.
added in version 2.3
Back to top