Closed ueberBrot closed 9 months ago
bucketName
is not required upon instantiation but if you don't provide it in the config you must provide it as a param to addFile
.
You can see it literally in the code:
if (typeof params.bucketName === "undefined") { // if bucketName is not provided to addFile
if (this._bucketName === null) { // and it hasn't been set upon instantiation
return { // we return an error
value: null,
error: "no bucket selected",
};
For the
AdapterLocal
thebucketName
is defined as optional in theAdapterConfig
(Link)But it is actually required as it is shown in the
AbstractAdapter
file here.