Content Platform – Video – Preserve original file name on upload
Use the original uploaded file name as the video title/name instead of generic values like original.mp4.
Problem
Right now uploaded videos are being stored/displayed with generic names, which makes:
videos hard to identify
multiple uploads look the same
media management worse for users and admins
New logic
When a user uploads a video:
capture the original file name
save it as the default video title/name
remove the generic fallback like
original.mp4
Example:
uploaded file:
manchester-city-highlights.mp4stored/displayed title:
manchester-city-highlights.mp4optional cleaned display title:
Manchester City Highlights
Recommended behavior
1. Store both values
original_file_namestorage_file_name
This is important because:
storage file may still need to be unique
display name should remain human-readable
2. Display title
By default use:
original uploaded file name
Optional enhancement:
auto-clean it for UI display:
remove extension
replace dashes/underscores with spaces
capitalize words
Example
Uploaded file:arsenal-vs-liverpool-preview-final.mp4
Stored:
original_file_name = arsenal-vs-liverpool-preview-final.mp4storage_file_name = 8fd92a-arsenal-vs-liverpool-preview-final.mp4
Displayed:
Arsenal Vs Liverpool Preview Final
Dev steps
Capture original file name from upload input
Save it in DB as
original_file_nameKeep unique storage naming separately
Update frontend to show original file name instead of generic name
Add optional cleaned display formatting
QA old uploads vs new uploads
Outcome: uploaded videos become easier to identify and manage, with meaningful names instead of generic placeholders.