How about System.IO.Path.GetExtension() ?look up the whole System.IO.Path "tree" on MSDN, you'll find lots ofgoodies that should help in building an uploader.