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

RadAsyncUpload and CSRF token

3 Answers 143 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Dawid
Top achievements
Rank 1
Dawid asked on 05 Jul 2013, 12:35 AM
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

Sort by
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.
0
Dawid
Top achievements
Rank 1
answered on 09 Jul 2013, 07:34 PM
Hi Hristo,

That is indeed the library that I was using.  But even if I had to create the token and handle it without that module, it would be really useful.

Thanks.
0
Accepted
Hristo Valyavicharski
Telerik team
answered on 15 Jul 2013, 01:09 PM
Hi Dawid,

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.
Tags
AsyncUpload
Asked by
Dawid
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Dawid
Top achievements
Rank 1
Share this question
or