WOS

Content Platform – Video – Preserve original file name on upload

J
João NevesinWOS
8 months ago

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.mp4

  • stored/displayed title: manchester-city-highlights.mp4

  • optional cleaned display title:

    • Manchester City Highlights


Recommended behavior

1. Store both values

  • original_file_name

  • storage_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.mp4

  • storage_file_name = 8fd92a-arsenal-vs-liverpool-preview-final.mp4

Displayed:

  • Arsenal Vs Liverpool Preview Final


Dev steps

  1. Capture original file name from upload input

  2. Save it in DB as original_file_name

  3. Keep unique storage naming separately

  4. Update frontend to show original file name instead of generic name

  5. Add optional cleaned display formatting

  6. QA old uploads vs new uploads

Outcome: uploaded videos become easier to identify and manage, with meaningful names instead of generic placeholders.

  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...