title: Implementing Anti forgery for Telerik upload control
body: <p>I have come across implementing Anti forgery token for a POST method when its an ajax call,the couple of things I do here are</p>
  
  <p>[1]Include<code>[ValidateAntiForgeryToken]</code> attribute for my POST controller method.</p>
  
  <p>[2]Change <code>$.ajax</code> call to <code>$.ajaxAntiForgery</code> in my js.</p>
  
  <p>Similarly I have a telerik upload control where I trigger the controller method from cshtml(instead of an ajax call)- cshtml code snippet below</p>
  
  <pre><code>@{ var upload = @Html.Telerik().Upload()
                  .Name("attachments")
                  .Multiple(true)
                  .Async(async =&gt; async.Save("MyMethodName", "MyConrollerName")
  </code></pre>
  
  <p>In this case, how do I implement antiforgery? What changes I need to do in cshtml, controller?</p>
  
  <p>Thanks,
  Adarsh</p>