get the file name from path and download it code example Example: C# get filebase name string name = Path.GetFileName(file);