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

Another bug of RadUpload

3 Answers 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Park
Top achievements
Rank 1
Park asked on 24 Sep 2010, 02:47 PM
Hello.

I found another bug of RadUpload.

I found a sampe to postprocess uploaded files at the link - http://www.telerik.com/support/kb/silverlight/upload/process-files-on-server.aspx

It works well at RadControls_for_Silverlight_3_2010_1_0603_DEV
However, it doesnot work well at RadControls_for_Silverlight_4_2010_2_0812_DEV and 00814RadControls_for_Silverlight_4_2010_2_0917_DEV

The source of my problem is firing order of upload events.

At SL3 version, when two files are uploaded, events are fired as this;
FileUploadStarting->FileUploaded->FileUploadStarting->FileUploaded->Postprocessing on the Server

However, at SL4 version, events are fired as wrong orders;
FileUploadStarting->FileUploadStarting->FileUploaded->Postprocessing on the Server->FileUploaded

Therefore, last file does not be postprocessed.

When I change SL4 assemblies into that of previous SL3 version, my app works well.

Please, investigate my issue.



3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 29 Sep 2010, 06:19 PM
Hello Park,

With the "RadControls for Silverlight-4.2010-1-0430" Internal Release we introduced a new functionality of RadUpload -the Batch Upload . Now one upload request (i.e. one chunk) can contain multiple files. As a result the speed of uploading a  set of small files is significantly increased. We could not achieve this without introducing some changes in the RadUploadHasndler control. More information about the these changes you can find here.

We are currently working on updating our KB articles and by tomorrow the Process Files On Server article will be updated as well.

Best wishes,
Tina Stancheva
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
dwhite
Top achievements
Rank 1
answered on 06 Oct 2010, 08:52 PM

The Process Files on the Server KB article has still not been updated.  Any idea on a ETA on getting a Silverlight 4 version?

You can tell it's old due to this line:

this.Request.Form["UploadedFiles"];

 


That no longer works in the new SL4 2010 controls...

I'm just trying to find out a way to tell that all the files have been uploaded on the server so that I process them from the handler.  Is there like a new "BatchCompleted" event or something that I'm overlooking?

-Damien
0
Tina Stancheva
Telerik team
answered on 12 Oct 2010, 01:30 PM
Hi dwhite,

Please accept my apology for the delayed response. The Process files on the server after upload KB article is updated. You can have a look at it and try the approach described there in order to implement your scenario.

The place where you can process a file on the server after it has been successfully updated is in the SaveChunkData() method as soon as the final chunk of the uploaded file is uploded (IsFinalFileRequest() returns true). Also, if the result of the SaveChunkData() method is true, then the upload operation is successfull.

If you need to process the uploaded files as soon as all files are updated, then you can implement your logic as soon as both the IsFinalFileRequest() and IsFinalUploadRequest() methods return true.

Here you can find more info about the UploadHandler of the RadUpload.

I hope this info helps. However, if your scenario requires a different approach, please let us know.

All the best,
Tina Stancheva
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
Tags
Upload
Asked by
Park
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
dwhite
Top achievements
Rank 1
Share this question
or