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

Get each file name from RadUpload, Silverlight

1 Answer 93 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Joseph Smith
Top achievements
Rank 1
Joseph Smith asked on 05 Nov 2010, 07:34 PM
Hi,

OK, I resolved it on my own. Insert this code in the file inheriting from RadUploadHandler:

//Occurs as each chunk of a file is being uploaded
 public override void ProcessStream()
    {
        base.ProcessStream();

        //After the request has been processed, check and see if this is a new file.
        //If so, then process it
        if (this.IsNewFileRequest())
        {
            //my own method
            InsertFile(this.GetFileName());
        }
}

Each time a new file is added, it will get the new file's name.

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 08 Nov 2010, 11:01 AM
Hi Joseph Smith,

Thank you for sharing your solution with us. It would be very helpfull to all encountered the same problem.

Sincerely yours,
Alex Fidanov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload
Asked by
Joseph Smith
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or