i using node.js , socket.io chat application, implemented file uploader.
var uploader = new siofu(); uploader.dir = "images/uploads/"; uploader.mode = "0775"; uploader.listen(socket); uploader.maxfilesize = 3000000;
structure of folder follows:
www -example.com --html --server.js //actual node.js server that's started. ---public ----images -----uploads
i've tried following paths:
public/images/uploads/ public/images/uploads /public/images/uploads/ /public/images/uploads ./public/images/uploads/ ./public/images/uploads
and yet doesn't work, server keeps throwing me enoent , file doesn't upload.
however, when set upload path to: /var/www/example.com/html/public/images/uploads
works fine , uploads images perfectly.
note: worked before, had hard-reset of server , after - happened.
what causing this?