Gets the path to the file on the client's machine.
Namespace:
EasyAlgo.EAUploadAssembly: EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.0.0
Syntax
| C# |
|---|
public string ClientFileName { get; } |
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property ClientFileName As String |
Field Value
Type: System..::.StringThe name of the client's file, including the directory path.
Remarks
Returned value is not validated on characters that are not allowed for path and file names. This logic was created for providing a possibility to get a file path on the client's machine as is, without any changes.
Examples
The following code example demonstrates how to assign the name of an uploaded file (the first file in the file collection) to a string variable.
CopyC#
CopyVB.NET
Upload _CurrentUpload = UploadsManager.GetUpload(); UploadedFileCollection _UploadedFiles = _CurrentUpload.UploadedFiles; UploadedFile _File = _UploadedFiles[0]; string _FileName = _File.ClientFileName;
Dim _CurrentUpload As Upload = UploadsManager.GetUpload Dim _UploadedFiles As UploadedFileCollection = _CurrentUpload.UploadedFiles Dim _File As UploadedFile = _UploadedFiles(0) Dim _FileName As String = _File.ClientFileName
