Uploading large files timeout

2 posts, 0 answers
  1. Jay
    Jay avatar
    90 posts
    Member since:
    Dec 2011

    Posted 05 Jun 2013 Link to this post

    I've read this: http://www.telerik.com/help/aspnet-ajax/upload-uploading-large-files.html and have set httpRuntime as described and it works. However, this opens it up for the whole application. I would prefer to limit it to just the pages where I'm doing uploads, as in

    <location path="PageWithUpload.aspx">
            <httpRuntime executionTimeout="1800" maxRequestLength="2097151" />
    but that doesn't seem to work. Should it, or is there another way to do it?
  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 10 Jun 2013 Link to this post

    Hi Jay,

    I suggest you to set maxRequestLength globally for the entire application. To control the maximum allowed file size use MaxFileSize property of RadAsyncUpload:
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TargetFolder="~/Uploads" MaxFileSize="50000"></telerik:RadAsyncUpload>

    Hristo Valyavicharski
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top