Implement 1 GB file upload via RadUpload control in WCF Service

2 posts, 0 answers
  1. Saurabh
    Saurabh avatar
    1 posts
    Member since:
    Nov 2012

    Posted 23 Nov 2012 Link to this post


    In one of the project, we have a requirement to upload upto 1 GB file on the file server with WCF service. I have tried it on ASP.Net application and it is uploading successfully upto 1 GB. Now I want the same control to work with WCF Services as there are other applications too which will use the same service for uploading. I have tried to include the RadUploadHandler ashx file in WCF Service and hosted it on server. When i try to consume it, it says Handler not found or execution of Handler failed.
    Firstly, I want to know whether i can go for WCF Service or not ?
    If not, then according to our requirement is there any other alternative to this requirement ?

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 27 Nov 2012 Link to this post

    Hello Saurabh,

    The RadUpload control is designed to work with WebRequests -it basically sends a WebRequest to an HttpHandler of type RadUploadHandler. And the RadUploadHandler has to be uploaded on the server and be accessible from the client side as described in this getting started tutorial.

    This is why you don't need a WCF Service to send the files to the server, as the RadUpload has a built-in logic for that using WebRequest. Also, the control doesn't apply any file size limitations by default so you should be able to upload a 1GB file on your server, if the server allows you to save a file with this size. You only need to check the buffer limitations in your web.config file as described here. Also, you can take a look at the RadUpload properties regarding file size and count limitations here.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top