blenderskool / blaze

⚡ File sharing progressive web app built using WebTorrent and WebSockets
https://blaze.now.sh/
MIT License
2.29k stars 282 forks source link

Transferring more than 10 files with Google Chrome #163

Open bstrochkov opened 1 year ago

bstrochkov commented 1 year ago

As far as I understand, Chrome limits the number of files that could be downloaded in one transfer to 10. Both on Mac and Android's Chrome. This prevents me from transferring more than this amount of files in one go. I need to select 10 files, transfer, repeat... Otherwise, if I select 20 files, only 10 are being transferred and no errors shown.

Would be nice to have some automated workaround for this

blenderskool commented 1 year ago

Is this only on Chrome? Have you tried on other browsers?

There are plans to compress multiple files to single zip file which should help here #121

bstrochkov commented 1 year ago

Tried using Safari on Mac as a receiver, and there the limit is 2 files at once. Same as in Chrome, anything more than that is seemingly being transferred but not being saved

blenderskool commented 1 year ago

Hmm, I didn't know there were different limitations across browsers.

ddelange commented 3 months ago

I can confirm that all files are sent, but only the first 10 files end up in my Downloads folder (Chrome for Mac).

fwiw, in Chrome specifically (also on Android I can see it) site settings has the 'automatic downloads' option, where the user will get a popup "blaze.vercel.app wants to download multiple files" -- user clicks Allow and then the site can dump as many files as it likes into the downloads. similar to camera permissions etc.

I'm not sure how this API can be adopted by the site though: manually allowing 'automatic downloads' in the site settings won't make a difference at the moment, the bug still occurs.

edit: here's a reproducible example how to trigger this popup on chrome (src)

ddelange commented 3 months ago

maybe blaze can switch from downloadjs to multi-download?

image

it is more recently maintained and seems to do the job reliably