Skip to content

Commit 87573b9

Browse files
committed
Allow generate key to access certain createfile traits
1 parent 61ae6b0 commit 87573b9

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
@@ -144,7 +144,7 @@ class S3Adapter {
144144
let key_without_prefix = filename;
145145
if (this._generateKey instanceof Function) {
146146
try {
147-
key_without_prefix = this._generateKey(filename);
147+
key_without_prefix = this._generateKey(filename, contentType, options);
148148
}catch(e){
149149
throw new Error(e); // throw error if generateKey function fails
150150
}

0 commit comments

Comments
 (0)