From 313e6962485fd8e53323ed35863f01bc25f71b57 Mon Sep 17 00:00:00 2001 From: nyne Date: Fri, 16 May 2025 15:35:56 +0800 Subject: [PATCH] fix s3 download --- server/storage/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/storage/s3.go b/server/storage/s3.go index c900f3e..dcbe1c0 100644 --- a/server/storage/s3.go +++ b/server/storage/s3.go @@ -46,7 +46,7 @@ func (s *S3Storage) Upload(filePath string, fileName string) (string, error) { func (s *S3Storage) Download(storageKey string, fileName string) (string, error) { if s.Domain != "" { - return s.Domain + "/" + storageKey, nil + return "https://" + s.Domain + "/" + storageKey, nil } minioClient, err := minio.New(s.EndPoint, &minio.Options{