Skip to content

Commit 9d760be

Browse files
committed
Allow generate key to access certain createfile traits
1 parent 394e175 commit 9d760be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class S3Adapter {
145145
let key_without_prefix = filename;
146146
if (this._generateKey instanceof Function) {
147147
try {
148-
key_without_prefix = this._generateKey(filename);
148+
key_without_prefix = this._generateKey(filename, contentType, options);
149149
}catch(e){
150150
throw new Error(e); // throw error if generateKey function fails
151151
}

0 commit comments

Comments
 (0)