ASPPowUpload 1.0 control documentation

Returns the safe file name and extension of the specified path string.

public static string GetSafeName(
   string filepath
);

Parameters

filepath
The path string from which to obtain the file name and extension.

Return Value

A String consisting of the characters after the last directory character in file path.

Remarks

All characters that are illegal in file names on Windows and not safe relative path substrings like "\\", "..\" are deleted.
Use only this method to get a safe file name to save the file on the target machine