title: 'HttpContext' does not contain a definition for 'current'
body: <p>I want to upload image to the image folder, but it will show this error. fronted is Angular 7.</p>
  
  <p>Asp.Net Core MVC</p>
  
  <h2>CustomerRepo.cs</h2>
  
  <pre><code> public bool AddCustomer(ExpressWebApi.Models.CustomerModel customer)
   { 
     SqlConnection con =new SqlConnection();
     con.ConnectionString="Data Source=.;Initial Catalog=BLAbLADB;Persist Security Info=True;User ID=sa;Password=sasasa"; 
  
     SqlCommand cmd = new SqlCommand();
     cmd.Connection=con;
  
      //file upload start-----------------------
        string imageName = null;
        var httpRequest = HttpContext.Current.Request; 
        //upload the image
        var postedFile = httpRequest.Files["cusImage"];
        //Current custome filename
        imageName = new string(Path.GetFileNameWithoutExtension(postedFile.FileName).Take(10).ToArray()).Replace(" ", "-");
                  imageName = imageName + DateTime.Now.ToString("yymmssfff") + Path.GetExtension(postedFile.FileName);
                  var filePath = HttpContext.Current.Server.MapPath("~/Images/" + imageName);
                  postedFile.SaveAs(filePath); 
    //file upload end-------------------------
  
  
    cmd.CommandText=$@"INSERT INTO Customer ([CusName], [CusPassword], [CusEmail], [CusDob], [CusImage]) VALUES ('{customer.CusName}', '{customer.CusPassword}', '{customer.CusEmail}', '{customer.CusDob}','{imageName}');";
  
    cmd.Connection.Open();
    cmd.ExecuteNonQuery();
    cmd.Connection.Close();
  
    return true;
   }
  </code></pre>
  
  <h2>register.html - in Angular Application</h2>
  
  <pre><code>   var customerData = { 
       "cusName": form.value.userName,
       "cusPassword": form.value.password,
       "cusEmail": form.value.email,
       "cusDob": form.value.dob,
       "cusImage" : this.fileToUpload
     };
  
   //for photo upload start---------------------------------
   handleFileInput(file:FileList){
   this.fileToUpload=file.item(0);
  
  //show image preview
  var reader = new FileReader();
  reader.onload=(event:any)=&gt;{
    this.imageUrl=event.target.result;
  }
  reader.readAsDataURL(this.fileToUpload);
  }
  //for photo upload end---------------------------------
  </code></pre>
  
  <p>Error   CS0117  'HttpContext' does not contain a definition for 'Current'</p>