您的位置:首页 > Web前端 > Node.js

node.js 上传东西到服务器 express

2012-12-17 16:49 447 查看
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form method="post" enctype="multipart/form-data" action="/file-upload">
<input type="text" name="username">
<input type="password" name="password">
<input type="file" name="thumbnail">
<input type="submit">
</form>
</body>
</html>


app.post('/file-upload', function(req, res, next) {
console.log(req.body);
console.log(req.files);
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: