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

Batch upload questions

3 Answers 68 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Henk
Top achievements
Rank 1
Henk asked on 03 Aug 2010, 02:01 PM

Hi,

I have problems getting information back for the uploaded files using batch upload using Radupload. I need the filenames for further processing i.e. saving to the database. I have followed the instructions written in the link http://www.telerik.com/support/kb/silverlight/upload/batch-upload.aspx.


According the link for getting parameter value for "ProcessFilesOnServer" is not working with the last version of telerik (version 2010.2.714.35)

I have replaced value = this.Request.Form[key];
with value = this.GetQueryParameter(key); as mentioned in the article

furthermore the LastFileUploadedSuccessfully procedure seems not working because   this.Result.ContainsKey(RadUploadConstants.ParamNameSuccess) should return success when the last file is uploaded but it always returns false.


I try to upload the filecount to the server using AdditionalPostFileds and GetQueryParameter but it returns always null.  In the article Overriding the ProcessStream method is also mentioned but more details would be welcome.


I have downloaded an example for radupload but its based on the old version/method. Could u provide an working example for batch upload using the new version. With a working example its easier to adjust to our needs, especially when information about the new features are scattered in different postings and help files (mostly not current anymore).


Thanks,


Henk

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 05 Aug 2010, 12:16 PM
Hi Henk,

Currently we are in the process of updating the KB and documentation of RadUpload. Meanwhile, this help topic might help you with your scenario.

All the best,
Kiril Stanoev
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
Henk
Top achievements
Rank 1
answered on 05 Aug 2010, 09:55 PM
Hi Kiril,

I have read the help topic. You may missed in my posting the "I try to upload the filecount to the server using AdditionalPostFileds and GetQueryParameter but it returns always null"...

Any idea why GetQueryParameter is null? I am stuck now!

The batch upload succeeds when I for example upload 3 files. But the problem is that I need to know #number of files uploaded and when the last file is finish before inserting the files to the database.


Henk
0
Miroslav
Telerik team
answered on 11 Aug 2010, 11:02 AM
Hi Henk,

I tried setting parameters in the FileUploadStarting event and as post parameters. Indeed the success parameter is not set.

Can you use the FinalFileRequest and FinalUploadRequest as a success check. When both are "True", then you can upload process your files.

The total file count and current file number can be saved as file parameters. In the FileUploadStarting event handler.

You can have a look at the attached project, the setting and reading parameters does work for me there.

Best wishes,
Miroslav
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
Henk
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Henk
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or