You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the code as below:
res.body.pipeTo(fileStream, {preventClose: true}).then(() => {code A}
when i click the browser's built-in cancel download, res still continues to be written to fileStream and execute {code A}
I expect to stop writing and subsequent operations after click cancel download. Since cancel download comes with the browser, I am unable to obtain its trigger events. Is there a good method?
The text was updated successfully, but these errors were encountered:
I use the code as below:
res.body.pipeTo(fileStream, {preventClose: true}).then(() => {code A}
when i click the browser's built-in cancel download, res still continues to be written to fileStream and execute {code A}
I expect to stop writing and subsequent operations after click cancel download. Since cancel download comes with the browser, I am unable to obtain its trigger events. Is there a good method?
The text was updated successfully, but these errors were encountered: