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:
Upload the local folder ~/Pictures
to the tdx Volt ./share/pictures
folder resource.
fusebox
Use the ‘upload’ button on the folder toolbar, or drag and drop files from the OS native file explorer.
javascript
Open the file and read it in chunks, passing each chunk to the UploadFile API.