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