I have an code below normally this code get file from file input in view im MVC project. I have files in my local folder. I want to read these files without use file input in view. I have local paths of files. But I dont know how I can change file string to File
public static string UploadFile(string category = "external", string guid = null)
{
string result = "";
HttpPostedFile file = HttpContext.Current.Request.Files.Get(0);
result = Save(file.ContentType, category, guid, null, file);
if (FILE_SAVE_ERROR.Equals(result))
return result;
if (string.IsNullOrEmpty(result))
return result;
return result + ";" + category;
}
How can I solve problem, Thanks in advance