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

Implement 1 GB file upload via RadUpload control in WCF Service

1 Answer 58 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Saurabh
Top achievements
Rank 1
Saurabh asked on 23 Nov 2012, 07:51 AM
Hi,

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 ?

Thanks
Saurabh

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 27 Nov 2012, 01:33 PM
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.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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