eligrey / eligrey/FileSaver.js

Is there a way to know when a download is started??

Open
#796 6 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

My backend have to download data from several sources and build a zip file in realtime.
It takes a few seconds to prepare the download, so when the user clicks the button to save it, it's very easy for users to spam the button and trigger several downloads.

I know I can just disable the button for a few seconds, but it's a guessing solution.

If an event triggered when the download actually starts I could keep the button disabled for the correct amount of time.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.