dir - node.js file upload Error: ENOENT, rename ' tmp/xxxxxx.jpeg', think the fault is in my path, what am I doing wrong? -
dir - node.js file upload Error: ENOENT, rename ' tmp/xxxxxx.jpeg', think the fault is in my path, what am I doing wrong? -
my code looks this:
and terminal output looks this:
but dont want path under "routes". rather under bears/public/...
appreciate help!
in current setup, you're joining path string. doesn't allow move levels within folder structure.
var path = require("path") var target_path = path.join(__dirname, "../public/images/bjornar")
the path module bring together them if moving around in command line.
node.js dir
Comments
Post a Comment