30 megabyte limit?

Thread is closed for posting
5 posts, 0 answers
  1. Chet
    Chet avatar
    4 posts
    Member since:
    Sep 2010

    Posted 24 May 2011 Link to this post

    Hi. I have a client that I've developed a solution for using RadUpload. We've discovered just recently that there seems to be a barrier somewhere around 30 megabytes. I flipped over to another solution I have that uses RadUpload (different server) and am experiencing the same thing. Both servers are Server 2008, and I've modified the web.config file on both servers as follows:

    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength=102400"
    requestLengthDiskThreshold
    ="8192" executionTimeout="3600"/>

    So both servers are configured for a maximum 100MB file and 60 minutes of upload.

    I have tested files of various size between 1MB and 28MB and they upload fine - everything, including my ProgressArea, works. When i upload a file above 30 MB, though, my ProgressArea doesn't display, and after about 2 minutes (regardless of connection speed), I get redirected to a 404 or timeout page.

    I've tested this on everything from a 512kb (up) connection to a 7mb (up) connection and the barrier seems to be right around 30 megabytes, consistently.

    I am running these inside UpdatePanels using AJAX but have added a PostBackTrigger to my upload button to trigger a full page postback when it is clicked.

    Hopefully that's enough info to get some help here. I've seen several people with issues related to the web.config settings and the ajax postback settings, but I think I have both of those dealt with. I'd appreciate your assistance.

    Thanks,

    Chet
  2. Chet
    Chet avatar
    4 posts
    Member since:
    Sep 2010

    Posted 24 May 2011 Link to this post

    It's always the "one last search" after you post that gets you... I'm trying this out now:

    http://www.cyprich.com/2008/06/19/fixing-file-upload-size-limit-in-iis-7/
    -----

    Adjusting File Size Limit in IIS 7

    The problem is that in IIS 7 on Windows 2008 Server, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to <system.webServer> in the web.config file:

    <security>
     <requestFiltering>
      <requestLimits maxAllowedContentLength=”2000000000″ />
     </requestFiltering>
    </security>

    With the above maxAllowedContentLength, users can upload files that are 2,000,000,000 bytes in size. This setting will work right away without restart IIS services.

    -----
    I did this, changing the maximum length to 102400000 to allow for a 100 meg upload:
    <security>
     <requestFiltering>
      <requestLimits maxAllowedContentLength=”102400000″ />
     </requestFiltering>
    </security>

    Perfectamundo! I am now uploading a 36 meg file and will try something right under 100 megs after that, and then right OVER 100 megs after that to prove to myself that I've truly found the solution to my issue.

    Chet
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chet
    Chet avatar
    4 posts
    Member since:
    Sep 2010

    Posted 24 May 2011 Link to this post

    Success! I can now upload 36 meg files and 97 meg files but not 103 meg files. Exactly what I wanted to happen.

    So to make RadUpload work with files over 30 megs in Server 2008 and IIS 7, I had to change web.config in two places: first, in <httpRuntime> and second, in <system.webServer> under <requestLimits...> .

    Hopefully this helps someone else down the road...
  5. Chet
    Chet avatar
    4 posts
    Member since:
    Sep 2010

    Posted 24 May 2011 Link to this post

    Oh, and just another little FYI... if you're uploading these files and then storing them in a database... and trying to play with files right at the 100 meg limit... you may need to check the maximum size of your tempdb database... mine was set at... you guessed it... 100 megs. Another little hiccup solved.
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 26 May 2011 Link to this post

    Hello Chet,

    In case you need more information how to configure the RadUpload control please consult with the following help article.

    Greetings,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017