title: Uploadify - MVC3: HTTP 302 Redirect Error (due to asp.net authentication)
body: <p>I'm using uploadify to bulkupload files and I get a 302 redirect error.  I'm assuming that this is because of some asp.net authentication cookie token not being passed back in the script call.  </p>
  
  <p>I have uploadify working in a regular bare bones mvc3 application but when I tried to integrate it within a secure asp.net mvc3 application it tries to redirect to account/signin.</p>
  
  <p>I have an authentication token (@auth) that does come back as a long string within the view but I still get the 302 redirect error.</p>
  
  <p>Any ideas how to send the cookie authentication data over?</p>
  
  <p>View:</p>
  
  <pre><code> @{
       string auth = @Request.Cookies[FormsAuthentication.FormsCookieName] == null ? string.Empty : Request.Cookies[FormsAuthentication.FormsCookieName].Value;
       }
  
  
  &lt;script type="text/javascript"&gt;
      jQuery.noConflict();
      jQuery(document).ready(function () {
          jQuery("#bulkupload").uploadify({
              'uploader': '@Url.Content("~/Scripts/uploadify.swf")',
              'cancelImg': '/Content/themes/base/images/cancel.png',
              'buttonText': 'Browse Files',
              'script': '/Creative/Upload/',
              scriptData: { token: "@auth" }, 
              'folder': '/uploads',
              'fileDesc': 'Image Files',
              'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
              'sizeLimit': '38000',
              'multi': true,
              'auto': true,
                'onError'     : function (event,ID,fileObj,errorObj) {
        alert(errorObj.type + ' Error: ' + errorObj.info);
      }
          });
      }); 
      &lt;/script&gt; 
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public class CreativeController : Controller
  {
      public string Upload(HttpPostedFileBase fileData, string token)
      {
        ...
      }
  }
  </code></pre>
  
  <blockquote>
    <p><strong>UPDATE:</strong> Ok, this works fine with IE9 but not in Chrome (Chrome throws the 302).  FF doesn't even render the control.</p>
    
    <p>Does anybody know how to get this working in the latest revs for
    Chrome and FF?</p>
  </blockquote>