Skip to content

Commit 2c5b77f

Browse files
author
Francis Lessard
committed
Merge remote-tracking branch 'ParsePlatform/master' into user-roles
2 parents 173c5d4 + e92176c commit 2c5b77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Files/S3Adapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class S3Adapter extends FilesAdapter {
8888
// The location is the direct S3 link if the option is set, otherwise we serve the file through parse-server
8989
getFileLocation(config, filename) {
9090
if (this._directAccess) {
91-
return ('https://' + this.bucket + '._s3Client.amazonaws.com' + '/' + this._bucketPrefix + filename);
91+
return `https://${this._bucket}.s3.amazonaws.com/${this._bucketPrefix + filename}`;
9292
}
9393
return (config.mount + '/files/' + config.applicationId + '/' + encodeURIComponent(filename));
9494
}

0 commit comments

Comments
 (0)