NeatUpload Documentation

UploadedFile.StripPath Method 

Removes the Windows-style path from the given filename.

protected static string StripPath(
   string fileName
);

Parameters

fileName
A filename, possibly including a Windows-style path.

Return Value

Just the filename.

Remarks

Some browsers (notably IE) send the full-path when uploading a file. Most do not. We strip off the path for consistency.

See Also

UploadedFile Class | Brettle.Web.NeatUpload Namespace