Checking file size on upload

Thread is closed for posting
2 posts, 0 answers
  1. Dan
    Dan avatar
    739 posts
    Member since:
    Mar 2009

    Posted 06 May 2008 Link to this post

    This help article shows how we can test the size of a file using the "OnClientProgressUpdating" event of the RadProgressArea object.

    However, the article requires that the file size limit is coded in to the JavaScript function.

    Given that the actual file size limit is set in the web.config file using the maxRequestLength attribute, wouldn't it be better if this value were used in the called function? OK, I'm guessing that this isn't a value that would, by default, be available in the client-side code, but I'm willing to bet that, server-side, you know, or have access to this value, so you could set it as a client-side property of the RadUpload object.

    Just a though.

    --
    Stuart
  2. Dimcho
    Admin
    Dimcho avatar
    45 posts

    Posted 09 May 2008 Link to this post

    Hi Stuart ,

    Thank you for your feedback. 
    We will put the suggestion in our feature requests list for further consideration.



    Best wishes,
    Dimcho
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top