title: asp.net mvc 4 with jquery-file-upload Request.Files.Count always 0
body: <p>I'm currently use asp.net mvc 4 ,and use jquery-file-upload to upload images,if i initialize like this:</p>
  
  <pre><code>        $('#fileupload').fileupload();
  
          $('#fileupload').fileupload('option', {
              //url: '/Admin/News/Create',
              maxFileSize: 500000000,
              acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
              maxNumberOfFiles: 1,
              resizeMaxWidth: 1920,
              resizeMaxHeight: 1200,
          });
  </code></pre>
  
  <p>when select a image file,the image can preview in the borwser,but in the mvc Action Request.Files.Count is 0,that means no file uploaded.
  And if i initialize like this:</p>
  
  <pre><code>        //$('#fileupload').fileupload();
  
          $('#fileupload').fileupload('option', {
              //url: '/Admin/News/Create',
              maxFileSize: 500000000,
              acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
              maxNumberOfFiles: 1,
              resizeMaxWidth: 1920,
              resizeMaxHeight: 1200,
          });
  </code></pre>
  
  <p>i can't preview the image ,but the mvc Action get the file,does anyone know why?
  post code for controller:</p>
  
  <pre><code>    [HttpPost]
      [ValidateInput(false)]
      public ActionResult Create(NewsViewModel model, FormCollection form)
      {
          if (ModelState.IsValid)
          {
              //....
  
              // upload image
              foreach (string file in Request.Files)
              {
                  HttpPostedFileBase hpf = Request.Files[file] as HttpPostedFileBase;
                  if (hpf.ContentLength == 0)
                      continue;
                  string path = Path.Combine(Server.MapPath("~/Uploads/News/"),GUID.NewGuid()+ Path.GetExtension(hpf.FileName));
                  hpf.SaveAs(path);
  
                  data.ImagePath = path;
                  _iNewsService.UpdateNews(data);
              }
          }           
      }
  </code></pre>