G
Guest
When I upload an image file to the server I need to isolate the file
extension (jpg, gif, png etc etc) Is there a string I can use. I can
successfully trap the file name with the extension I can even get the file
name without the extension as follows:
string
fne=System.IO.Path.GetFileNameWithoutExtension(fileupload1.PostedFile.FileName);
but I need to get the extension. Does anyone know how?
Sam I am.
extension (jpg, gif, png etc etc) Is there a string I can use. I can
successfully trap the file name with the extension I can even get the file
name without the extension as follows:
string
fne=System.IO.Path.GetFileNameWithoutExtension(fileupload1.PostedFile.FileName);
but I need to get the extension. Does anyone know how?
Sam I am.