I know it is a simple question, but haven't been able to find anything useful on this one.
How do you use fs.createWriteStream(dst) to overwrite a file? (note that the app is hosted on heroku)
I tried {flags: 'w'} or {flags: 'r+'} even {flags: 'wb'}. None of these worked, I keep getting
Error: File uploads/1.txt exists.