use async fs.write to write files on upload