Skip to content

Commit

Permalink
Fix invalid s3 files url.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Feb 15, 2016
1 parent cf7202f commit 2570899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapters/Files/S3Adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class S3Adapter extends FilesAdapter {
// The location is the direct S3 link if the option is set, otherwise we serve the file through parse-server
getFileLocation(config, filename) {
if (this._directAccess) {
return ('https://' + this.bucket + '._s3Client.amazonaws.com' + '/' + this._bucketPrefix + filename);
return `https://${this._bucket}.s3.amazonaws.com/${this._bucketPrefix + filename}`;
}
return (config.mount + '/files/' + config.applicationId + '/' + encodeURIComponent(filename));
}
Expand Down

0 comments on commit 2570899

Please sign in to comment.