refactor(backend): update upload directory name from 'upload' to 'uploads' for consistency

This commit is contained in:
keven1024
2025-05-01 15:07:18 +08:00
parent b2804450ee
commit 55a1db8265
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -28,5 +28,5 @@ logs
/front/public/swe-worker*
# backend
**/upload/**
**/uploads/**
**/tmp/**

View File

@@ -13,7 +13,7 @@ func GetUploadDirPath() (string, error) {
if err != nil {
return "", err
}
finalPath := filepath.Join(basepath, "upload")
finalPath := filepath.Join(basepath, "uploads")
if err := os.MkdirAll(finalPath, 0755); err != nil {
return "", err
}