title: uploadify error HTTP: undefined?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1877644/uploadify-show-error-message-from-http-response">Uploadify: show error message from HTTP response</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to get Uploadify to work in my asp.net mvc 3 app. I am getting an error( see title). This is my view:</p>
  
  <pre><code>@{
      ViewBag.Title = "Home Page";
  }
  
    &lt;script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.3.2.min.js")"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="@Url.Content("~/Scripts/swfobject.js")"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="@Url.Content("~/Scripts/jquery.uploadify.v2.1.0.min.js")"&gt;&lt;/script&gt;
  
    &lt;input type="file" name="fileInput1" id="fileInput1" /&gt;
      &lt;span id="result"&gt;&lt;/span&gt;&lt;a href="javascript:$('#fileInput1').uploadifyUpload();"&gt;Upload
          File&lt;/a&gt;
  
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
  
          $("#fileInput1").uploadify({
              uploader: '@Url.Content("~/Scripts/uploadify.swf")',
              script: '@Url.Action("Upload", "Upload")',
              fileDataName: 'file',
              buttonText: 'File Input 1...',
              multi: false,
              sizeLimit: 22222222222,
              simUploadLimit: 1,
              cancelImg: '@Url.Content("~/Scripts/cancel.png")',
              auto: false,
              onError: function (a, b, c, d) {
                  if (d.status == 404)
                      alert("Could not find upload script. Use a path relative to: " + "&lt;?= getcwd() ?&gt;");
                  else if (d.type === "HTTP") {
                      console.log("error " + d.type + ": " + d.status);
                      alert("error " + d.type + ": " + d.status);
                  }
                  else if (d.type === "File Size")
                      $("#result").html("file too big");
                  //alert(c.name + " " + d.type + " Limit: " + Math.round(d.info / (1024 * 1024)) + "MB");
                  else
                      alert("error " + d.type + ": " + d.text);
              },
              onComplete: function (event, queueId, fileObj, response, data) {
                  alert(response);
              }
          });
  
  
      });
  
  &lt;/script&gt;
  </code></pre>