Skip to content

Commit

Permalink
Allow generate key to access certain createfile traits
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianCurtin committed Jan 17, 2025
1 parent 61ae6b0 commit 87573b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class S3Adapter {
let key_without_prefix = filename;
if (this._generateKey instanceof Function) {
try {
key_without_prefix = this._generateKey(filename);
key_without_prefix = this._generateKey(filename, contentType, options);
}catch(e){
throw new Error(e); // throw error if generateKey function fails
}
Expand Down

0 comments on commit 87573b9

Please sign in to comment.