Closed lambertkevin closed 1 year ago
Plus one for this!
In version 1.4.5 you can specify an optional options
object to the methods addFileFromPath
, addFileFromBuffer
and addFileFromReadable
For example:
addFileFromPath(filePath: string, targetPath: string, options?: object): Promise<string>;
At the moment the
store
method doesn't allow for any additional arguments, which means you can't add metadatas, use ACL, Expires, etc... at least for compatible StorageTypes.A good way to implement it would probably be to allow an additional parameter to the
store
methods and use destruct to create theparams
variable.additionalParams
being at the top of the destruct to avoid conflicts withBucket
,Key
andBody