The current Client Web SDK functions only returns string
i.e a URL for the file.
We cannot download and get the file object directly either via arraybuffer/blob object.
The URL is protected, and hence either need to get the file via HTTP API + JWT or use Server in order to obtain a blob/arraybuffer file.
Is there a direct way to get the File?
TL;DR
- The Client Web SDK currently only provides a URL link to the file, not the file object itself like arraybuffer/blob.
- To obtain the file object directly, options include using HTTP API + JWT or involving the Server.
- There isn't a direct method to obtain the file object from the Client Web SDK.