joyent/node — Issue #2703: fs.rename() can't move file between two different disks
Author: fishbar
Created: 2012-02-06 03:56:16+00:00
State: open

when upload file using formiddle module ,as default posted file will be written to a tmp dir(/tmp/xxxxx.file) . in my response handler, i want move this tmp file to apps storage path using fs.rename() . but fs.rename() always throw exception(can not find the source file: /tmp/xxxx.file) .

so i changed the formiddle module's default tmp folder into same disk with apps ,now it's works well

os: windows | linux ubuntu
node:v0.6.8