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

uploadFinished with custom RadUploadHandler

2 Answers 45 Views
Upload
This is a migrated thread and some comments may be shown as answers.
coding
Top achievements
Rank 1
coding asked on 14 Apr 2011, 02:58 AM
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 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 19 Apr 2011, 07:54 AM
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
0
coding
Top achievements
Rank 1
answered on 19 Apr 2011, 06:22 PM
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!

Tags
Upload
Asked by
coding
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
coding
Top achievements
Rank 1
Share this question
or