Skip to content

Commit

Permalink
fix: preserve original filename in upload handling for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
PlusOne committed Jan 26, 2025
1 parent be6ebc1 commit a5be103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,8 @@ func handleUpload(w http.ResponseWriter, r *http.Request, absFilename, fileStore
}
finalFilename = filepath.Join(filepath.Dir(absFilename), hashVal)
case "None":
// Keep filename as-is
// Preserve the original filename
finalFilename = absFilename
default:
// ...existing code...
}
Expand Down

0 comments on commit a5be103

Please sign in to comment.