uploaded event in RadUploadHandler

2 posts, 0 answers
  1. c
    c avatar
    17 posts
    Member since:
    Apr 2011

    Posted 25 Feb 2014 Link to this post


    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~


  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 28 Feb 2014 Link to this post

    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
  3. DevCraft banner
Back to Top