Timeout when uploading large files

Last post 01-29-2006, 12:30 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-20-2006, 6:25 AM 14946

    Timeout when uploading large files

    When uploading large files I get a Request Timeout message.
    This applies to all upload functions; Images, Media, Flash and Documents.

    How do I enable uploading of large files?  I would prefer a solution that only affect the upload forms and don't require changes to machine.config or the root web.config.
     
  •  01-29-2006, 12:30 AM 15278 in reply to 14946

    Re: Timeout when uploading large files

    Zapotec,
     
    You can set up Web.config to allow uploading of large files by ASP .NET applications.

    By default, Machine.config is configured to accept HTTP Requests upto 4096 KB (4 MB) and it is reflected in all your ASP.NET applications. You can change the Machine.config file directly, or you can change only the Web.config file of the application(s) you want to.


    Open your Web.config file, and just below the <system.web> tag, add the following tag:

    <httpRuntime
    executionTimeout="120"
    maxRequestLength="4096"
    useFullyQualifiedRedirectUrl="false"
    minFreeThreads="8"
    minLocalRequestFreeThreads="4"
    appRequestQueueLimit="100"
    enableVersionHeader="true"
    />

    Now, just take a look at the maxRequestLength="4096" attribute of the <httpRuntime> tag. As you may have realized, all you need to do is change the value to some other value of your choice (8192 for 8 Mb, 16384 for 16 Mb, 65536 for 64 Mb, and so on...).
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML