1.从前端获取文件
<form action="/Register.aspx" method="post" enctype="multipart/form-data"> <input type="file" name="img" /> <input type="submit" value="submit" /> </form>
(1)HttpPostedFile file = Request.Files["fileUpload"];
file.SaveAs();
1.从前端获取文件
<form action="/Register.aspx" method="post" enctype="multipart/form-data"> <input type="file" name="img" /> <input type="submit" value="submit" /> </form>
(1)HttpPostedFile file = Request.Files["fileUpload"];
file.SaveAs();