Fix Asset filename extraction to use original filenames instead of storage paths #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Asset.filename property currently extracts filenames from content-addressable storage paths (e.g., b3a5b3c5f9e7f9ee8e4cbeb1ad0fad04f936883695c3de60021f69e60470ace8.png) instead of preserving original filenames (e.g., logo.png).
Root Cause
The _extract_filename_from_path() method in markitect/assets/models.py:108 extracts from the path field, which contains the deduplicated storage path rather than the original file path.
Impact
Proposed Solution
Files Affected
Priority
Medium - Affects user experience but doesn't break functionality