Skip to content

Commit

Permalink
add s3 prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
azumads committed Jun 15, 2017
1 parent 7afcd76 commit 656e3b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func (s S3) GetURLTemplate(option *media_library.Option) (path string) {
if path = option.Get("URL"); path == "" {
path = "/{{class}}/{{primary_key}}/{{column}}/{{filename_with_hash}}"
}
if awsS3PathPrefix != "" {
path = "/" + awsS3PathPrefix + path
}
return "//" + getEndpoint(option) + path
}

Expand Down

0 comments on commit 656e3b5

Please sign in to comment.