Skip to content

Commit 5c3ed12

Browse files
committed
Fix invalid s3 files url.
1 parent 9248f9a commit 5c3ed12

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)