我正在尝试做一个文件上传使用Node.js和强大的模块。
npm install formidable
然后我做了这个,请阅读笔记-在这里,我可以解释每个函数做什么,并描述算法:
// get access to the files that were sent;
// at this time I don't want the files to be uploaded yet;
// in the next function I will validate those files.
function form_parse() {
form.parse(req, (err, f