title: Error in ASP.NET MVC file upload
body: <p>Look, guys. I am trying to upload some info, but can not load file. Just check the code: 
  View:</p>
  
  <pre><code>&lt;form method="post" data-toggle="validator" role="form"&gt;
          &lt;div class="not-that-right"&gt;
              &lt;div class="form-group"&gt;
                  &lt;label for="Photo"&gt;Photo&lt;/label&gt;
                  &lt;input type="file"
                         id="Photo"
                         name="Photo"
                         accept="image/gif, image/jpeg, image/png"
                         onchange="show(this)" /&gt;
              &lt;/div&gt;
  
              &lt;img id="onLoad"
                   src="#"
                   alt="photo is optional"&gt;
          &lt;/div&gt;...........some another info.
  &lt;/form&gt;
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code>[HttpPost]
  public ActionResult Create(InventorViewModel inventor)
  {
      inventor.Photo = Request.Files["Photo"];
      InventorEntity onAdding = new InventorEntity()
      {
          FirstName = inventor.FirstName,
          SurName = inventor.SurName,
          DateOfBirth = inventor.DateOfBirth,
          Sex = inventor.Sex,
          HigherEducation = inventor.HigherEducation == "on" ? true : false,
          Description = inventor.Description,
          Country = uow.UserBL.GetCounryById(int.Parse(inventor.Country)),
          Photo = ImageConvertor.ConvertToBytes(inventor.Photo)
      };
      uow.UserBL.CreateInventor(onAdding);
      return RedirectToAction("Index");
  }
  </code></pre>
  
  <p>so and when i add this model to database, the photo is NULL. Any ideas? Maybe i should change something (or everything xD)</p>