Getting extension of the file in FileUpload Control
Posted
by Mostafa
on Stack Overflow
See other posts from Stack Overflow
or by Mostafa
Published on 2010-03-14T16:52:09Z
Indexed on
2010/03/14
16:55 UTC
Read the original article
Hit count: 631
Hi
At the moment i get file extension of the file like :
string fileExt = System.IO.Path.GetExtension(filUpload.FileName);
But if the user change the file extension of the file ( for example user could rename "test.txt" to "text.jpg" ), I can't get the real extension . What's the solution ?
© Stack Overflow or respective owner