From 1ed154913d9a230b613d9119a21d27774de47ba6 Mon Sep 17 00:00:00 2001 From: keven Date: Sun, 19 Oct 2025 00:10:09 +0800 Subject: [PATCH] refactor(backend,worker): update environment variable key for upload path to enhance consistency across modules --- backend/internal/utils/file.go | 2 +- worker/internal/utils/file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/utils/file.go b/backend/internal/utils/file.go index be7ec13..4b09b8f 100644 --- a/backend/internal/utils/file.go +++ b/backend/internal/utils/file.go @@ -41,7 +41,7 @@ func GetUploadDirPath() (string, error) { return "", err } finalPath := filepath.Join(basepath, "uploads") - uploadPath := GetEnvWithDefault("UPLOAD_PATH", finalPath) + uploadPath := GetEnvWithDefault("upload.path", finalPath) if err := os.MkdirAll(uploadPath, 0755); err != nil { return "", err } diff --git a/worker/internal/utils/file.go b/worker/internal/utils/file.go index c45e082..eeb2080 100644 --- a/worker/internal/utils/file.go +++ b/worker/internal/utils/file.go @@ -39,7 +39,7 @@ func GetUploadDirPath() (string, error) { return "", err } finalPath := filepath.Join(basepath, "uploads") - uploadPath := GetEnvWithDefault("UPLOAD_PATH", finalPath) + uploadPath := GetEnvWithDefault("upload.path", finalPath) if err := os.MkdirAll(uploadPath, 0755); err != nil { return "", err }