From 1e8b29ff0777076d5ade12a36f90737eb76b086b Mon Sep 17 00:00:00 2001 From: saheb Date: Mon, 11 Aug 2025 01:59:49 +0530 Subject: [PATCH] fixed sprintf error caused while using external s3 endpoint --- services/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/s3.go b/services/s3.go index 539567f..3ba2331 100644 --- a/services/s3.go +++ b/services/s3.go @@ -66,7 +66,7 @@ func UploadToS3Storage(file io.Reader, originalFilename, contentType string, par if parsedConfig.AssetStorage == "local" { publicURL = fmt.Sprintf("/kal-api/file/get/%s", filename) } else { - publicURL = fmt.Sprintf(parsedConfig.S3.PublicUrlFormat, "uploads", filename) + publicURL = fmt.Sprintf(parsedConfig.S3.PublicUrlFormat, filename) } return publicURL, nil