asp.net - File get from local paths in C# -
i have code below code file file input in view im mvc project. have files in local folder. want read these files without use file input in view. have local paths of files. dont know how can change file string 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 solve problem, in advance
Comments
Post a Comment