Optional
options: UploadOptionsFinishes a multipart upload instance
Optional
options: UploadOptionsUploads a single part to TagoIO
Optional
options: UploadOptionsChanges visibility settings for multiple files.
Lists all files in the application with pagination support.
Optional
queryObj: FileQueryUploads base64 encoded files to TagoIO storage.
https://help.tago.io/portal/en/kb/articles/140-uploading-files Uploading Files
Uploads a single file to TagoIO using multipart upload. The file is divided into chunks and uploaded in parallel for better performance.
Optional
options: UploadOptionsIf receive an error "Authorization Denied", check policy File / Upload in Access Management.
const file = Buffer.from("file content");
const result = await Resources.files.uploadFile(file, "/uploads/myfile.txt", {
chunkSize: 5 * 1024 * 1024, // 5MB chunks
onProgress: (progress) => console.log(`Upload progress: ${progress}%`)
});
console.log(result.file); // https://api.tago.io/file/.../uploads/myfile.txt
Adds an upload to the queue. It will try to upload for 'opts.maxTriesForEachChunk' and fail if it couldn't upload after those many tries.