然后在代码页中写
//上传图片
if (UpFile.PostedFile != null)
{
   HttpPostedFile mFile= UpFile.PostedFile;
   int fileSize = mFile.ContentLength; //得到文件大小
   string exName = System.IO.Path.GetExtension(mFile.FileName); //得到扩展名

........
...
}

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-02-06
  • 2022-02-07
  • 2022-12-23
  • 2021-10-05
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案