<br> if (m_filePath.PostedFile != null)<br> {<br> string nam = m_filePath.PostedFile.FileName;<br> int i = nam.LastIndexOf(".");<br> string newext = nam.Substring(i);<br> DateTime now = DateTime.Now;<br> string newname = now.DayOfYear.ToString() + m_filePath.PostedFile.ContentLength.ToString();<br> m_filePath.PostedFile.SaveAs(Server.MapPath("Up" + "/upload" + newname + newext));<br> }
上传文件
最新推荐文章于 2024-11-16 19:00:01 发布