Browse Source

Add upload files

HonorLee 7 years ago
parent
commit
d8c36a218d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server.js

+ 1 - 0
server.js

@@ -29,6 +29,7 @@ function serverHandler(req,res){
         let form = new Formidable.IncomingForm();
         form.parse(req, function(err, fields, files) {
             req._POST = fields;
+            req._UPLOAD = files;
             new ROUTER(req,res);
         });
     }else{