How to prevent the repetitions of the downloads

Hello everyone, I would like to ask…
How to prevent the situation “If we click several times on the “download” button, a new download starts while the old download is in progress?” (Cuz the progress costs 5 minutes)
Thx a lot in advance.

Hi @SUN,

I did something similar once, but I just blocked the complete app while downloading the file, showing a full screen bootstrap spinner element during the download.

Hi, could you please give me the codes or some examples? I don’t understand what means "block the complete app "? Thanks.

I just uploaded a small example here:

Another way would be to set the button to disabled once clicked and enable it again with a trigger (Interval, another button etc.).