I have a fullstack application with react and nodeJS. I want to create a flow-> click on a button -> download file from the server.
I did it using stream (on the server side), and window.open() on the client side
How can I detect if window.open
downloaded a file successfully?
I want to catch errors (such as error 500) but didn't find a way to do so...