We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e634835 commit ac4037eCopy full SHA for ac4037e
index.js
@@ -228,10 +228,12 @@ class S3Adapter {
228
}
229
230
const fileKey = `${this._bucketPrefix}${fileName}`;
231
+ // For presigned URLs, use the original unencoded filename to prevent double encoding
232
+ const presignedFileKey = `${this._bucketPrefix}${filename}`;
233
234
let presignedUrl = '';
235
if (this._presignedUrl) {
- const params = { Bucket: this._bucket, Key: fileKey };
236
+ const params = { Bucket: this._bucket, Key: presignedFileKey };
237
const options = this._presignedUrlExpires ? { expiresIn: this._presignedUrlExpires } : {};
238
239
const command = new GetObjectCommand(params);
0 commit comments