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(). default os.tmpdir().


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -