Upload Files

The Assets provider allows you to upload files from your project to the Vonage Cloud Runtime platform for long term storage.

Method signature

uploadFiles(localFilePaths: string[], remoteDir: string)

Uploading Files

const session = vcr.createSession();
const assets = new Assets(session);

await assets.uploadFiles([filePath], '/imgs');