mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
fix s3 download
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user