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

Can't find FilesSelectedEventArgs when using RadUpload

1 Answer 69 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ama
Top achievements
Rank 1
Ama asked on 20 Dec 2012, 02:48 AM
Hi, I used RadUpload tool to upload image file and I want to show it when I select an image file on Dialog window. So I search on google and I found this page http://www.telerik.com/help/silverlight/radupload-events-overview.html with info of "FilesSelectedEventArgs"

  • FilesSelected - occurs when files have been selected from the browse dialog window. The event handler receives two arguments:
    • The sender argument contains the RadUpload. This argument is of type object, but can be cast to the RadUpload type.
    • A FilesSelectedEventArgs object.
But when I code, I can't find this. It's just have FileUploadedEventArgs . Please help me! Thanks

protected void UploadImage(object sender, FilesSelectedEventArgs e)
    {

        int counter = 1;
        UploadedFile file;
        file = e.File;
       
        string targetFolder = Server.MapPath(RadUpload1.TargetFolder);

        string targetFileName = Path.Combine(targetFolder,
            file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());

        while (System.IO.File.Exists(targetFileName))
        {
            counter++;
            targetFileName = Path.Combine(targetFolder,
                file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
        }
        Image1.ImageUrl = targetFileName;
        upload_image_handle(sender, e);// call FilesSelectedEventhandle
    }

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Dec 2012, 08:54 AM
Hi,

I am not quite sure about your requirement. The article you are pointing is related to radupload in silverlight. Check the following help documentation which explain server side events of radupload.
Server-Side Events

Thanks,
Shinu.
Tags
Upload (Obsolete)
Asked by
Ama
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or