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

Upload control with WCF

1 Answer 62 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Alexandr
Top achievements
Rank 1
Alexandr asked on 01 Nov 2011, 10:51 AM
Hi,

We have an architecture with Silveright app + WCF services. We want to add file upload feature utilizing RadUploadControl and our WCF services. We checked telerik code samples and found that RadUploadControl uses RadUploadHandler which is implemented as ashx handler. Is there any way to use RadUploadControl with WCF services? 

For example, we look for a method in RadUploadControl we could have overrided, and this method performs function to transfer data to the server. In this case we could have implemented calling our WCF services for transfering data.   

Thanks.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 04 Nov 2011, 08:06 AM
Hello Alexandr,

The RadUpload control is designed to send requests to the server which can only be processed by the RadUploadHandler that is defined in the RadUpload.UploadServiceUrl property. Basically when you hit the Upload button in the control a POST request is send to the server and an http handler has to process it - the RadUploadHandler is used for that purpose.

This is why in your scenario it might be better to create a custom upload control. You can use for example such an approach.

Best wishes,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
Alexandr
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or