Upload file or folder

api

The FileAPI.UploadFile API enables a file to be uploaded from the local disk to a resource on the Volt.

Both the fusebox and the cli make use of this endpoint to also support uploading folders or entire trees of files.

cli

Use the upload cli command:

Terminal window
./volt upload --help

Upload the local folder ~/Pictures to the tdx Volt ./share/pictures folder resource.

Terminal window
./volt upload ~/Pictures ./share/pictures

fusebox

Use the ‘upload’ button on the folder toolbar, or drag and drop files from the OS native file explorer.

fusebox-upload

javascript

Open the file and read it in chunks, passing each chunk to the UploadFile API.

examples coming soon...

C++

auto result = voltApi->uploadFileSync(resourceId, sourceFile.toStdString(), cancelCB);