阅读背景:

nodejs之express框架二(文件上传)

来源:互联网 

一,新建form表单提交的html页面(form.html)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <form action="/upload" method="post" enctype="multipart/form-data">
        <h2>单图上传</h2>
        <input type="file" name="logo">
        <input type="submit" value="提交">
    </form>
</body>
</html><!DOCTY



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: