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

Setting file size limits in a code

1 Answer 90 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Bram
Top achievements
Rank 1
Bram asked on 26 Aug 2008, 02:24 PM
Hi,

I have several pages were RadUpload is used to upload files. On one page file size limit is 500MB and on another page limit is 10MB. DotNetNuke framework is used so I can’t set file size limits in web.config file (it will be anyway one configuration for these pages). How can I set file size limits in a code, while configuring controls?

Regards,

Jochem  Nuij

1 Answer, 1 is accepted

Sort by
0
Accepted
Erjan Gavalji
Telerik team
answered on 27 Aug 2008, 08:42 AM
Hi Jochem Nuij,

The web.config file should be modified to contain only the global limitation for request sizes. What I mean is that if you have the max request size left default (4MB), every user (in any site), trying to upload a larger file will get a browser error message.

You can set the MaxFileSize property for each of the RadUpload controls on the page.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Bram
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or