I'm using RadAsyncUpload to allow a file to be uploaded to the server.
However, we also have an anti-CSRF token on the page involved. Is there some way that I can append a header or add to the request that AsyncUpload makes to enable this to be passed along?
Thanks.
3 Answers, 1 is accepted
0
Hristo Valyavicharski
Telerik team
answered on 09 Jul 2013, 03:52 PM
Hi Dawid,
At the moment RadAsyncUpload does not expose API, that allow you to modify header of the request. Are you using this library - AntiCSRF? We need this information in order to make a deeper research with our code base and try to provide you an example that could solve your case.
Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
It seems that RadAsyncUpload works correctly when Custom Handler is used. There is no need to make any additional settings. Please find the attached sample. I have tested it on IIS7.5 and ASP.NET v4.0 Classic as an Application Pool.
Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.