Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request parse-community#5 from jherrmann/master
Browse files Browse the repository at this point in the history
fixed direct access url
  • Loading branch information
flovilmart authored Jul 11, 2016
2 parents 2f09f3f + 1bf94f7 commit 31590b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ GCSAdapter.prototype.getFileData = function(filename) {
// otherwise we serve the file through parse-server.
GCSAdapter.prototype.getFileLocation = function(config, filename) {
if (this._directAccess) {
return `https://${this._bucket}.storage.googleapis.com/${this._bucketPrefix + filename}`;
return `https://storage.googleapis.com/${this._bucket}/${this._bucketPrefix + filename}`;
}
return (config.mount + '/files/' + config.applicationId + '/' + encodeURIComponent(filename));
}
Expand Down

0 comments on commit 31590b5

Please sign in to comment.