Best-effort extraction of a filename from a local path.
Local filesystem path.
Default name when no basename can be derived.
Basename fallback for uploads.
Best-effort extraction of a filename from a local path.