UploadedFileGetExtension Method |
Returns the extension of the file on the client's computer.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public string GetExtension()
Public Function GetExtension As String
public:
String^ GetExtension()
member GetExtension : unit -> string
Field Value
Type:
String
A string containing the extension of the file including the ".". If the file name does not have
extension information, GetExtension returns string.Empty.
Remarks
The extension of the file name is obtained by searching it for a period (.), starting with the last character
and continuing toward the start. If a period is found before a DirectorySeparatorChar or AltDirectorySeparatorChar
character, the returned string contains the period and the characters after it; otherwise, string.Empty is returned.
See Also