hi,
i got two files upload in a form, then the action 'files_post' need to
copy the two files before res responding,
how to code in such a way that res.render is called after two files
are renamed?
exports.files_post = function(req, res) {
if (req.files.file1.size > 0) {
do_rename(ref.files.file1)
}
if (req.files.file2.size > 0) {
do_rename(ref.files.file2)
}
res.render('end')
}
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en