Skip to content

Commit e92176c

Browse files
committed
Merge pull request parse-community#393 from ParsePlatform/nlutsenko.s3
Fix invalid s3 files url.
2 parents cf7202f + 2570899 commit e92176c

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)