Setting file size limits in a code

Thread is closed for posting
2 posts, 1 answers
  1. Bram
    Bram  avatar
    4 posts
    Member since:
    Nov 2007

    Posted 26 Aug 2008 Link to this post


    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?


    Jochem  Nuij
  2. Answer
    Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 27 Aug 2008 Link to this post

    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.
Back to Top