Is there an easy way to tell if there are files selected, but not uploaded?

2 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 08 May 2013 Link to this post

    I can get the selected files by radUploadAttach.Items.Count;, but I can't tell if they are uploaded or not.
    I tried to fire off the event, on files uploaded.  Then set a bool when they're uploaded, but it seems to reset the bool when the page is refreshed or for some reason.

    I basically have a button to move to the next page, but I want to warn them that they have files waiting to be uploaded.
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 13 May 2013 Link to this post

    Hello Dan,

    RadUpload provides a property CurrentSession - this property contains the upload session info. It exposes the following collections:
    • FailedFiles - this property gets the list of files that RadUpload was not able to properly upload
    • SelectedFiles - this property gets the list of selected files in RadUpload
    • TooLargeFiles - this property gets the list of files that were too large and didn't meet the FileSize limitations applied by the RadUpload FileSize-related settings
    • UploadedFiles - this property gets the list of all properly uploaded files at any moment during the progress of the upload session
    • ValidFiles - this property gets the list of all files that are properly validated.

    I believe you can use these collections (particularly the UploadedFiles collection) to track the files and their states during any particular upload session. Please give this a try and let us know if you have further questions.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top