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

uploaded event in RadUploadHandler

1 Answer 33 Views
Upload
This is a migrated thread and some comments may be shown as answers.
c
Top achievements
Rank 1
c asked on 25 Feb 2014, 08:58 AM

hi,
   Becaust I want to do something on the server when the file is uploaded,how can I capture the uploaded event in RadUploadHandler?
  thx~


1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 Feb 2014, 09:19 AM
Hi,

In order to execute some custom logic in the RadUploadHandler after a file is uploaded you will need to override its GetAssociatedData() method of the handler which is executed on each Final-file-request.
public class SampleUploadHandler : RadUploadHandler
{
    public override Dictionary<string, object> GetAssociatedData()
    {
        // do something....
        return base.GetAssociatedData();
    }
}

You can read more about the methods in the RadUploadHandler that can be overridden in this help article.

Regards,
Martin
Telerik
Tags
Upload
Asked by
c
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or