Skip to content

Video downloads renamed to "Video.mp4" and preview unavailable due to missing filename while uploading file from iOS app #7945

@Polonco

Description

@Polonco

Steps to reproduce

Open the Element iOS app and initiate a private conversation with another user.
Using the Element iOS app, send a video file to the other user. Ensure the video has a specific filename (e.g., "ProjectPresentation_v2.mp4").
On the receiving device using Element Web open the conversation and attempt to download the video sent from the iOS app.

Outcome

What did you expect?

The downloaded video should retain its original filename ("ProjectPresentation_v2.mp4" in this example).
A preview of the video should be displayed within Element Web before downloading.

What happened instead?

The downloaded video is renamed to "Video.mp4."
No video preview is available on the receiving device.

Related issue:

According to investigation, this is due to the sending iOS Element client not including a filename in the Matrix send request. The Matrix specification dictates that if no filename is provided, the body of the request is used. Without a matching file extension for the mimetype (video/mp4), Element sanitizes the filename during download as a security measure (GHSA-5486-384g-mcx2).
See more here: element-hq/element-web#30166

Your phone model

No response

Operating system version

No response

Application version

No response

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MediaO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-TolerableLow/no impact on usersT-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions