This is a migrated thread and some comments may be shown as answers.

Uploading large files timeout

1 Answer 394 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Jay asked on 05 Jun 2013, 07:37 PM
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">
    <system.web>
        <httpRuntime executionTimeout="1800" maxRequestLength="2097151" />
    </system.web>
</location>
but that doesn't seem to work. Should it, or is there another way to do it?

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 10 Jun 2013, 02:32 PM
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>


Regards,
Hristo Valyavicharski
Telerik
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.
Tags
AsyncUpload
Asked by
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or