There is a file that is offloaded on to a website that now I may need to download back to our own website. It is available as http://www.example.com/uploads/file.xyz
.
If you entered the URL in the browser, the download dialog would appear. What I need to do is download that file programmatically using node js (and express) to a folder in my node js express server.
I've seen plenty of examples of using res.download()
method but that is not the same. I believe it launches a download dialog. I need to save the file to a directory I choose programmatically, without a dialog.