Open SaiyanRiku opened 1 year ago
Hmm 🤔 seems to go a bit against my popup hack proposal. the blob fallback is the least favored method of saving data where it will store everything in memory until it can be saved.
the http solution is to create a popup window that can install a service worker via a secure domain. once the service worker is installed will it then transfer the readable stream over to the service worker and then close the popup window.
OK i understand well ! But in my case, it doesn't work. The popup open well, i can see in the browser inspector (Firefox) that the file seem to be downloaded, but it doesn't appears in the downloads list or in my download directory. But it works with the blob fallback or the iframe method in secure context. I was not able to find why the popup method doesn't works. Is there something i can do to help ?
I succeed to reproduce the bug on Firefox and Chrome on Linux and Windows, i don't try other browser.
Another workaround, in my case will be to add an option to disable the popup method, but certainly it would be better to fix the popup method.
Hello,
I want to propose this modification that solve a download problem in my usage in mode HTTP in non secure context.
By default, the following code works if hostname matches http://localhost:3000/ or https://mydomain.com:3000, but not if using http://mydomain.com:3000 or http://192.168.1.1:3000.
I'm using streamSaver with react and npm version 2.0.6, with this function.