FileUpload get file extension
FileInfo fi = new FileInfo(fileName);
string ext = fi.Extension;
"Path" am I missing a using statement?
You have to add
using System.IO;
to the list of namespaces
FileInfo fi = new FileInfo(fileName);
string ext = fi.Extension;
"Path" am I missing a using statement?
You have to add
using System.IO;
to the list of namespaces