title: What is the equivalent of Server.MapPath in ASP.NET Core?
body: <p>I have this line in some code I want to copy into my controller, but the compiler complains that</p>
  
  <blockquote>
    <p>The name 'Server' does not exist in the current context</p>
  </blockquote>
  
  <pre><code>var UploadPath = Server.MapPath("~/App_Data/uploads")
  </code></pre>
  
  <p>How can I achieve the equivalent in ASP.NET Core?</p>