Increase file upload size limit in iis6

后端 未结 4 1429
你的背包
你的背包 2020-12-01 08:47

Is there any other place besides the metabase.xml file where the file upload size can be modified?

I am currently running a staging server with IIS6 and it is setup

4条回答
  •  余生分开走
    2020-12-01 09:14

    I will extend my answer to your question to take into account other possible situations.

    A very good link to learn about uploading big size files is this one: http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx

    Here Jon Galloway explains the best techniques to treat the problem:

    1.-Changing machine config or web.config:

    
      
    
    

    Here you change not only the maxRequestLength, but you must give more seconds for the executionTimeout.

    Interesting thing: Take into account that the value of this setting is ignored in debug mode. The default in .NET Framework 2.0 is 110 seconds. In the .NET Framework 1.0 and 1.1, the default is 90 seconds.

    2.-Talking about the real solution, HttpModules like the free of charge NeatUpload

    3.-Explaining another way of uploading more intuitively: Silverlight or flash swfupload

    4.-He speaks about one restriction II7 has. In this page http://www.telerik.com/help/aspnet-ajax/upload_uploadinglargefiles.html you can find more interesting settings for IIS 7, to set a maximum of 100 megas. You add:

     
    ...
       
         
           
         
       
     
    

    And you must open the file C:\Windows\System32\inetsrv\config\applicationHost.config and find the line:

    changing to:

    Another interesting thing Galloway mentions: "In ASP.NET 1.0 and 1.1, the entire file was loaded into memory before being written to disk. There were improvements in ASP.NET 2.0 to stream the file to disk during the upload process."

    For IIS6 the solution Chris gives I think is appropriate:

    http://www.banmanpro.com/support2/File_Upload_limits.asp

    Another source:

    http://www.telerik.com/support/kb/aspnet-ajax/upload/page-not-found-error-when-uploading-large-files-on-win2003.aspx


    Another URL where one user has tested a lot of components here:

    http://remy.supertext.ch/2008/01/file-upload-with-aspnet/

    He refers to a codeproject project (!) that is another very good example of using large files and flash here:

    http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

提交回复
热议问题