Skip to content

Display file upload speed and time #3678

@xuang7

Description

@xuang7

Motivation

Currently, users lack clear visibility into upload speed and time, especially when uploading large files. This makes it difficult to assess whether uploads are proceeding efficiently or stalling unexpectedly. Feedback on speed and time can improve the transparency and perceived performance of the upload system.

Proposed Changes

  • Display Upload Speed

    • Show live upload speed (e.g., 100.1MB/s) using a smoothed average.
    • Use a moving average of recent samples to avoid jitter.
    • Cap update frequency (e.g., throttle to 1 update/sec).
  • Show Time (Elapsed + Remaining)

    • Display elapsed time (since upload started).
    • Estimate time remaining based on average speed and remaining bytes.
    • When progress reaches >95%, cap ETA (e.g., max 10s) to prevent unnecessary long estimates near completion.
    • Show final upload duration as tooltip after upload is complete.

Example Output
[ 100.1 MB/s - 12s elapsed, 10s left ]

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