feat: refactor file processing and storage handling with improved path management

This commit is contained in:
krau
2025-02-15 15:06:06 +08:00
parent 7692286d78
commit 3a4effab33
6 changed files with 68 additions and 51 deletions

View File

@@ -21,7 +21,6 @@ func (l *Local) Init() {
}
func (l *Local) Save(ctx context.Context, filePath, storagePath string) error {
storagePath = filepath.Join(config.Cfg.Storage.Local.BasePath, storagePath)
absPath, err := filepath.Abs(storagePath)
if err != nil {
return err