Check documentation for the latest version of dhtmlxSuite addFileRecord DHTMLX Docs

addFileRecord

adds a new file record to vault

void addFileRecord(object fileData,string status);
fileDataobjectthe file object that will be added to vault
statusstringthe status of the file, can be either "added" or "uploaded"

Example

var fileData = {    
    name: "price.xls",  // the name of the file, mandatory
    size: 257412        // the file size, optional
};
myVault.addFileRecord(fileData, "uploaded");

Details

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.

Change log

added in version 2.3

Back to top