uploadFinished with custom RadUploadHandler

3 posts, 0 answers
  1. coding
    coding avatar
    6 posts
    Member since:
    Apr 2011

    Posted 13 Apr 2011 Link to this post

    Greetings,

    I am saving the files uploaded to a database and it would seem that UploadFinished is fired right after the file is uploaded not after the call to SaveChunkData completes.  Is this correct?  If so is there a way to fire the UploadFinished event after the custom file processing code executes in SaveChunkData?

    Thanks!
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 19 Apr 2011 Link to this post

    Hi coding,

    The UploadFinished event should fire when all of the files have been uploaded. The RadUploadHandler will execute the SaveChunkData and then send the back information to the client. Then if success, the event is raised. Which version are you using to test this? Does the UploadFinished event fire prior to the SaveChunkData call?

    All the best,
    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
  4. coding
    coding avatar
    6 posts
    Member since:
    Apr 2011

    Posted 19 Apr 2011 Link to this post

    Hi Alex,

    I removed all of our custom code and created a test application that would upload and then "sleep" in the uploadhandler to simulate calling the database.  It looks like the uploadcontrol/handler are behaving as you suggest below so I will look closer at our custom code.  I'll respond to this thread if I find a problem with the upload control but for now it looks like the problem is in our custom code.

    Thanks for responding!

Back to Top