@@ -140,8 +140,8 @@ class S3Adapter {
140
140
141
141
// For a given config object, filename, and data, store a file in S3
142
142
// Returns a promise containing the S3 object creation response
143
- async createFile ( filename , data , contentType , options = { } , config = { } ) {
144
-
143
+ async createFile ( filename , data , contentType , options = { } , config = { } ) {
144
+
145
145
let key_without_prefix = filename ;
146
146
if ( this . _generateKey instanceof Function ) {
147
147
try {
@@ -150,13 +150,13 @@ class S3Adapter {
150
150
throw new Error ( e ) ; // throw error if generateKey function fails
151
151
}
152
152
}
153
-
153
+
154
154
const params = {
155
155
Bucket : this . _bucket ,
156
156
Key : this . _bucketPrefix + key_without_prefix ,
157
157
Body : data ,
158
158
} ;
159
-
159
+
160
160
if ( this . _fileAcl ) {
161
161
if ( this . _fileAcl === 'none' ) {
162
162
delete params . ACL ;
@@ -196,8 +196,8 @@ class S3Adapter {
196
196
return {
197
197
location : location , // actual upload location, used for tests
198
198
name : key_without_prefix , // filename in storage, consistent with other adapters
199
- s3_response : response , // raw s3 response
200
- ...url ? { url : url } : { } // url (optionally presigned) or non-direct access url
199
+ s3_response : response , // raw s3 response
200
+ ...url ? { url : url } : { } // url (optionally presigned) or non-direct access url
201
201
} ;
202
202
}
203
203
0 commit comments