StorageClient
getFile
Fetches the file associated with the specified
key
from cloud storage and returns it as aUint8Array
.
getFileSignedUrl
Generates and returns a signed URL to access the specified file.
expiresIn
(optional) sets the expiration time of the URL in seconds.
uploadFile
Uploads a file in
Uint8Array
format to cloud storage. You can optionally specify the MIME type viacontentType
(default:"application/json"
).
uploadLocalFile
Uploads a file from a local path using a stream, and returns the uploaded object's URL.
uploadDirectory
Uploads all files in a local directory to cloud storage.