Skip to content

Add support for real-time upload progress in sendImage, sendVideo, and other send* methods #5844

@Alireza-dev-abbasian

Description

@Alireza-dev-abbasian

Currently, the sendImage, sendVideo, sendFile, and similar methods in the Matrix Rust SDK only report progress as 0% or 100% when uploading media to timelines. This makes it difficult to provide real-time, chunk-based progress updates to users.

Suggested Changes:
Add an optional ProgressWatcher parameter to the send* methods.
Emit periodic progress updates during the upload (e.g., every few KB or every 250ms).
Ensure backward compatibility by making the progress parameter optional.

This would enable smoother user experience with accurate upload progress while keeping existing functionality intact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions