Get each file name from RadUpload, Silverlight

2 posts, 0 answers
  1. Joseph Smith
    Joseph Smith avatar
    4 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2010 Link to this post

    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.
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 08 Nov 2010 Link to this post

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