How i can get file size

2 posts, 0 answers
  1. Python
    Python avatar
    1 posts
    Member since:
    Jul 2015

    Posted 01 Jul 2015 Link to this post

    How i can get file size on client for all files added in AsyncUpload before upload?

    And how i can  view the upload progress of ALL files together as a progress bar in the upload control?

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 06 Jul 2015 Link to this post


    You can use the following code to get the size of a file: 
          <telerik:RadAsyncUpload runat="server" ID="upload" OnClientFileSelected="fileSelected"></telerik:RadAsyncUpload>
              function fileSelected(sender, args) {
                  var size = args.get_fileInputField().files[0].size;

    Note that this will be working only for modern browsers, where FileApi is supported. - IE10+,Chrome,FF

    To monitor uploading progress of all files use ProgressArea:
    AsyncUpload - Integration with RadProgressArea

    Hristo Valyavicharski
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top