I want to call a custom page to store the upload file inside the upload folders in wwwroot folder and Im using my custom page "SaveToFile.cshtml" to do this thing but now, it is working fine in Asp.Net maker MVC but noe it is does nt working in Asp.Net core I dont know mabe some features does not support a part from my code
*@{
try
{
String strImageName;
HttpFileCollection files = HttpContext.Current.Request.Files;
HttpPostedFile uploadfile = Request.Files["RemoteFile"];
strImageName = uploadfile.FileName;
string strInputFile = ew_UploadPath(true) + strImageName;
uploadfile.SaveAs(Server.MapPath(".") + "..\\uploads\\" + strImageName);
HttpContext.Current.Request.Files("DWTBarcodeUploadSuccess:" + strImageName);
}
catch
{
}
}