Closed denizozger closed 10 years ago
"tmp/" creates the file relative to index.js, which I believe prevents confusions just like the one here: http://stackoverflow.com/questions/25307888/file-upload-in-koajs
should actually be require('os').tmpdir()
require('os').tmpdir()
@jonathanong Good stuff I wasn't aware of that method - updated the code now & tested, it works.
"tmp/" creates the file relative to index.js, which I believe prevents confusions just like the one here: http://stackoverflow.com/questions/25307888/file-upload-in-koajs