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.
2 parents cf7202f + 2570899 commit e92176cCopy full SHA for e92176c
src/Adapters/Files/S3Adapter.js
@@ -88,7 +88,7 @@ export class S3Adapter extends FilesAdapter {
88
// The location is the direct S3 link if the option is set, otherwise we serve the file through parse-server
89
getFileLocation(config, filename) {
90
if (this._directAccess) {
91
- return ('https://' + this.bucket + '._s3Client.amazonaws.com' + '/' + this._bucketPrefix + filename);
+ return `https://${this._bucket}.s3.amazonaws.com/${this._bucketPrefix + filename}`;
92
}
93
return (config.mount + '/files/' + config.applicationId + '/' + encodeURIComponent(filename));
94
0 commit comments