Upload control with WCF

2 posts, 0 answers
  1. Alexandr
    Alexandr avatar
    1 posts
    Member since:
    Nov 2011

    Posted 01 Nov 2011 Link to this post


    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.   

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 04 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top