Skip to content
Snippets Groups Projects
Commit 7849b4ed authored by Johan de Klerk's avatar Johan de Klerk
Browse files

S3 url from file name

parent e95dabb7
No related branches found
No related tags found
No related merge requests found
......@@ -360,3 +360,10 @@ func GetS3FileKey(fileName string, folder string) string {
return fileKey
}
func URLFromFileName(region string, bucket string, fileName string) string {
logoUrl := "https://%s.s3.%s.amazonaws.com/logos/%s"
logoUrl = fmt.Sprintf(logoUrl, bucket, region, fileName)
return logoUrl
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment