79135732

Date: 2024-10-29 03:16:29
Score: 2
Natty:
Report link

Both the following code will return the file name with extension but does not include the full directory path of the file on the client.

string filename = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);

string filename = FileUpload1.FileName;

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TAN YEW MENG