不知道有哪些情况会导致files为空,fields有值,值为{upload:'test.png'},test.png就是我上传的那张图片,请大家帮我看看,不甚感激varform=newformidable.IncomingForm();form.parse(request,function(error,fields,files){console.log(files);fs.renameSync(files.upload.path,'temp/test.png');response.writeHead(200,{'Content-Type':'text/html'});response.end('');});
添加回答
举报
0/150
提交
取消
