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