Hello,
I am trying to queue all my uploaded documents using RadUpload.
I can queue easily using Drag n Drop, however I am having difficulties casting the uploadedFiles from RadUpload to FileInfo[].
Sections of the working DragnDrop and the Not-working RadUpload are included below.
How do I cast my UploadedFiles to FileInfo[] ???
Thank You.
I am trying to queue all my uploaded documents using RadUpload.
I can queue easily using Drag n Drop, however I am having difficulties casting the uploadedFiles from RadUpload to FileInfo[].
Sections of the working DragnDrop and the Not-working RadUpload are included below.
How do I cast my UploadedFiles to FileInfo[] ???
Thank You.
private void ImageDrop_Drop(object sender, DragEventArgs e)
{
// Queue the FileInfo objects representing dropped files
files = e.Data.GetData(DataFormats.FileDrop) as FileInfo[];
................................
}
private void RadUpload1_UploadFinished(object sender, RoutedEventArgs e)
{
files = RadUpload1.CurrentSession.UploadedFiles as FileInfo[];
....................................
}