node.js - Change nodejs temporary directory -
i want make file upload using nodejs, fs.rename() cannot move file between 2 different disks/partitions, don't want copy uploaded file temporary directory. want change temporary directory fs.rename() work.
how can that? thanks!
the module responsible formidable, , can set uploaddir
, per readme:
form.uploaddir = "/my/dir";
sets directory placing file uploads in. can move them later on using
fs.rename()
. defaultos.tmpdir()
.
Comments
Post a Comment