Maximum file size from web.config

Jagadeeswararao

Hi ,
How can i get maximum file size from web.config and assign it to RadAsyncUpload.?
I have multiple file to upload , in case of the files or file limit exceeds 100MB then system should show an error message. how can i implement this.?
Can you please someone help in this .... :)

Kate

Please take a look at the following help article where you can get more detailed information on how you can upload large file with the RadAsyncUpload control - Uploading Large Files.

Regards,
Kate
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.

Jagadeeswararao

Thanks for response..
but what i need exactly is:
1) I need to upload multiple files which shouldn't crossed total size to 100MB.
2) In case i have uploaded 50MB(not submitted), then i tried to upload a file having size 60MB shouldn't allow(as the total size will be 110MB) and error message should display.
Any solutions for this.

Please have a look into the following code I tried to achieve your scenario from C# code. As per the following code if the total upload size exceeds 100MB, then rest of the files wont get uploaded to the server and an alert is displayed to the user.

Kate

The article that i previously provided describes in details you can enable file upload for large files. Considering your other questions you can implement validation and check the size of the files that you are uploading. Take a look at this example to get a better understanding how validation works with the RadAsyncUpload.

Regards,
Kate
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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.