ngx-uploader
ngx-uploader copied to clipboard
Progress bar doesn't work when using service workers
I have a NG4 project and we are using this module for our file uploads.
Since we turned the service-worker option in the cli, the progress bar stopped working.
If I disable the service worker or do a hard refresh, all works fine. It seems that the event itself doesn't fire.
Does anyone come across that?
hi @doronsever, in case you find a solution please write here or feel free to open a pr. thank you.
Same here, if service workers are active, not only do the uploading events never fire, but if the file is too big, it timeouts after 2 mins.
Hello @doronsever,
For the above problem you can pass the ngsw-bypass into header or the query parameters as follow
headers: { 'ngsw-bypass': 'ignored/empty/omitted' }
with the help of this error it will allowed to bypass the service worker entirely and let the browser handle the request instead.
I rather have it control by inline params so in the ngsw config I could set it up