title: The name 'image' does not exist in the current context
body: <p>I am getting a compile error from my HttpPost attribute in my controller that handles the upload of images. I have scoured the net trying to figure out if I am missing some sort of namespace, however, alas no where seems to have an answer. Here is my controller code as well as my view code.</p>
  
  <pre><code>       [HttpPost]
          public ActionResult PhotoUpload(artisan.Models.UploadImageModel imageModel)
          {
              string path = @"D:\Temp\";
  
              if (ModelState.IsValid)
              {
                  if (imageModel != null &amp;&amp; imageModel.File != null)
                      image.SaveAs(path + imageModel.File.FileName);
  
                  return RedirectToAction("Profile");
              }
  
              return View();
          }
  </code></pre>
  
  <p>My controller and views are in separate files in their respective folders.</p>
  
  <pre><code>@using (Html.BeginForm("PhotoUpload", "Profile", FormMethod.Post, new { enctype = "multipart/form-data" }))
      {
          &lt;label for="image"&gt;Upload Profile Image:&lt;/label&gt;
          &lt;input type="image" name="profilephoto" id="profilephoto" style="width: 100%;" /&gt;
          &lt;input type="submit" value="Upload" class="submit" /&gt;
      }
  </code></pre>