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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -