title: Need uploaded file path to convert to Byte[]
body: <p>The path value returns a root website path.  However, I don't want to store images there, I want to get the image from the user (when they upload from local).</p>
  
  <p>I can hard code the string with my local path and it will work but that wont work in other environments.  I am running .net core 1.0.</p>
  
  <p>Controller:</p>
  
  <pre><code>foreach (var file in files)
              {
                  if (file.Length &gt; 0)
                  {
                      string path = Path.GetFullPath(model.Filename);
  
                      var img = Image.FromFile(Path.Combine(path, file.FileName));
                      using (var ms = new MemoryStream())
                      {
                          img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
                          model.FileData = ms.ToArray();
                      }
  
                  }
              }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;input asp-for="Filename" type="text" id="upload-banner" class="form-control" placeholder="Upload Image" readonly&gt;
  &lt;span class="input-group-btn"&gt;
  &lt;input  id="i_file" type="file" name="files" multiple /&gt;
  &lt;button type="button" class="btn btn-effect-ripple btn-primary"&gt;Upload&lt;/button&gt;
  &lt;/span&gt;
  </code></pre>