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

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

1 Answer 29 Views
Upload
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 08 May 2013, 07:17 PM
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.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 13 May 2013, 12:30 PM
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.


Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Upload
Asked by
danparker276
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or