目前我得到文件的文件扩展名,如:
string fileExt = System.IO.Path.GetExtension(filUpload.FileName);
但是如果用户更改了文件的文件扩展名(例如用户可以将"test.txt"重命名为"test.jpg"),我就无法获得真正的扩展名.解决方案是什么?
asp.net file-upload
asp.net ×1
file-upload ×1