Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1135
igUpload - Post file directly to WCF RESTful service
posted

Hi all,

I'm using IgniteUI v13.1 and ASP.NET 4.0 (not MVC)

I'm developing a web app that takes a CSV file, and must upload it to the server to be processed, and then return some data to be displayed in an igGrid.

 

I see the igUpload control has a "posturl" property, is there some way I can use this to post the file directly to my WCF RESTful service?

If not, how can I get the file to my WCF service so I can process and return the data?

Any tips/hints would be appreciated!

Thanks,

 

Regards,

 

Parents
  • 4315
    Offline posted

    Hi, Eduard.

    Thanks for using our products and let me see if I can help you.

    I suppose you are talking about the progressUrl property. And I think you cannot set it directly to a WCF RESTful service, unless you implement that service to receive chunks of the file and save it to the server. When using igUpload, it comes with already implemented server side that handles this. But the url should reference HTTP Handler on the server. Along with the HTTP module, both save and manipulate the server part of igUpload. If you want to use something different from HTTP Module and Handler, you should implement it yourself.

    But having the Infragistics.Web.Mvc dll on the server, you just need to put the URL to "IGUploadStatusHandler.ashx" and the file should be saved on the server. I guess you've already read the tutorials. Then you can read it, with the service, and send the data back to the client.

    I will wait for your feedback.

    Nikolay Alipiev

Reply Children