上传文件有几个大小定义不太明确
<httpRuntime maxRequestLength="4096" executionTimeout="3600" />
maxRequestLength:获取或设置请求的最大大小。
HttpApplication.Request.ContentLength 指发送的数据的内容长度
抓取上传Post方式的Header中有Headers Sent和Headers Received
Headers Sent:
Content-Type:1284932
Content-Length:multipart/form-data; boundary=---------------------------7d9bba10b78
Headers Received:
Content-Type:1795
Content-Length:text/html; charset=utf-8
实际的上传文件大小FileUpload1.PostedFile.ContentLength(1,284,127)。
由哪个来限制上传最大大小?如果多个文件一起上传,此时的上传设置是针对单个文件还是针对由多个文件
组成的一个整体?