parse

loads a list of files into Vault from a local source

void parse(array data,string|object format);

Parameters

dataarraythe list of files
formatstring|objectoptional, the data format ("json" by default; other values are "csv" or an object)

Example

vault.data.parse([
    {
        name:"test.jpg",
        type:"image/jpeg",
        status:"queue",
        size:136484
    },
    {
        name:"another.svg",
        type:"image/svg+xml",
        status:"queue",
        size:352321
    }
]);

Related samples

See also
Back to top