From fc54cbd1183850c6109d98cb0450264de1ad9b70 Mon Sep 17 00:00:00 2001 From: pahmiudahgede Date: Thu, 15 May 2025 16:36:14 +0700 Subject: [PATCH] fix: fixing image path at about detail --- internal/services/about_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/about_service.go b/internal/services/about_service.go index 6a61a83..27a7f17 100644 --- a/internal/services/about_service.go +++ b/internal/services/about_service.go @@ -107,7 +107,7 @@ func (s *aboutService) saveCoverImageAbout(coverImageAbout *multipart.FileHeader } func (s *aboutService) saveCoverImageAboutDetail(coverImageAbout *multipart.FileHeader) (string, error) { - pathImage := "/uploads/coverabout/coveraboutdetail" + pathImage := "/uploads/coverabout/coveraboutdetail/" coverImageAboutDir := "./public" + os.Getenv("BASE_URL") + pathImage if _, err := os.Stat(coverImageAboutDir); os.IsNotExist(err) {