C#保存上传来的图片示例代码
代码如下: [HttpPost] public string UploadImage() { //string ss = Request.Form[“uploadFile”]; //return ss; HttpPostedFileBase uploadFile = Request.Files[0]; string fileName = uploadFile.FileName; int fileSize = uploadFile.ContentLength; string fileExt = Path.GetExtension(fileName).ToLower(); string messa
用户评论