在使用Html+ashx处理文件上传时,遇到上传文件超过4M的问题,首先HTML代码如下:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <meta charset="utf-8" />
</head>
<body>
    <div>
        单文件上传
        <form enctype="multipart/form-data" method="post" action="UpLoadHandler.ashx">
            <input type="file" name="files" />
            <input type="submit" value="上传" />
        </form>
    </div>

    <div>
        多文件上传
        <form enctype="multipart/form-data" method="post" action="UpLoadHandler.ashx">
            <input type="file" name="files" multiple />
            <input type="submit" value="上传" />
        </form>
    </div>
</body>
</html>
View Code

相关文章:

  • 2021-08-28
  • 2021-08-28
  • 2021-05-30
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-08-26
  • 2021-05-17
  • 2021-07-23
相关资源
相似解决方案