Skip to content

Commit 7ce1fca

Browse files
authored
Merge pull request #31 from mirsahebali/fix-sprintf-error
fixed sprintf error caused while using external s3 endpoint
2 parents 1bc0594 + 1e8b29f commit 7ce1fca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func UploadToS3Storage(file io.Reader, originalFilename, contentType string, par
6666
if parsedConfig.AssetStorage == "local" {
6767
publicURL = fmt.Sprintf("/kal-api/file/get/%s", filename)
6868
} else {
69-
publicURL = fmt.Sprintf(parsedConfig.S3.PublicUrlFormat, "uploads", filename)
69+
publicURL = fmt.Sprintf(parsedConfig.S3.PublicUrlFormat, filename)
7070
}
7171

7272
return publicURL, nil

0 commit comments

Comments
 (0)