ASP.NET FileUpload只允许四个文件

时间:2014-04-26 16:03:11

标签: asp.net file-upload httpexception

Hy,我在通过FileUpload上传更多文件时遇到了问题。

 <asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true"  />

当我上传最多4个文件时,没有问题,但是当我想要上传更多的四个文件时,它不会进入代码背后,它会引发这种情况:

[HttpException (0x80004005): Byla překročena maximální délka požadavku.]
   System.Web.HttpRequest.GetEntireRawContent() +9726860
   System.Web.HttpRequest.GetMultipartContent() +63
   System.Web.HttpRequest.FillInFormCollection() +165
   System.Web.HttpRequest.EnsureForm() +75
   System.Web.HttpRequest.get_Form() +12
   System.Web.HttpRequest.get_HasForm() +9728411
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +95
   System.Web.UI.Page.DeterminePostBackMode() +69
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +130

有人帮我请求吗?!?

0 个答案:

没有答案