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

RadUploadHandler in WCF Service

5 Answers 110 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Licenses
Top achievements
Rank 1
Licenses asked on 23 Apr 2010, 10:05 AM
Hello,

We are using the RadUpload in a silverlight application. To upload our documents we would like to use a WCF Service to upload documents to and let the service do the necessary processing. The idea is to put the files in SQL Server 2008 using the FileStream attribute.

The problem is that the Radupload uses a UploadServiceUrl which points to a generic handler in the webapplication.

Is there a way or a solution to call the WCF service with the upload-control and let the generic handler be defined in the WCF Service?

thanks in advance,
Geert

5 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 23 Apr 2010, 10:07 AM
Hello Sodi We,

At the moment you can't use a WCF service. Why you can't use the generic handler? We are gathering feedback about what are the scenarios that the WCF service enables.

Best wishes,
Valentin.Stoychev
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
Licenses
Top achievements
Rank 1
answered on 23 Apr 2010, 10:17 AM
Dear,

The reason is security and asynchronous implementation + remove the processing to a service instead of the silverlight app.

security: Using the filestream attribute in SQL Server 2008 the connection to the database is to be made by windows authentication. Therefor we created a functional windows account that runs the service and is responsible for the connection to the database server.

I hope this can help as some feedback. Maybe there is a equivalent by using the generic handler that I do not see for the moment.

thanks in advance
Geert
0
Valentin.Stoychev
Telerik team
answered on 28 Apr 2010, 01:25 PM
Hi Sodi We,

Thank you for this feedback - it was valuable for us!

Kind regards,
Valentin.Stoychev
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
Aravind
Top achievements
Rank 1
answered on 21 Nov 2012, 04:24 AM
hai 
now support rad upload handler in wcf service ?
if yes means pls help me ,i upload files using upload handler in wcf service to insert into database,and also check if file name is already present in database ,rename the currently upload files using some popup window or some panel .

              pls reply asap thanx in advance................
0
Tina Stancheva
Telerik team
answered on 22 Nov 2012, 04:24 PM
Hello Aravind,

The RadUpload control has two parts - client and sever part. And at the moment the client part of the control triggers an upload operation that can only be handled by a RadUploadHandler on the server. And you can modify the RadUploadHandler implementation to save the uploaded files in a database rather than in a folder on the server. However, the control doesn't provide a server-side mechanism for calling a popup/window for renaming files.

Basically you can rename the files for upload on the server in the UploadHandler implementation as I demonstrated in this forum thread or you can validate the uploaded files on the client side. Please take a look at this tutorial describing the validation mechanism exposed by the RadUploadItems. In your case you can handle the Validate event to use a WCF service to traverse your database tables to see if the file with the same name is already saved in the database. In case it is, you can use the RadWindow control to Prompt the user to rename the file and restart the upload operation.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Upload
Asked by
Licenses
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Licenses
Top achievements
Rank 1
Aravind
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or