Skip to content

Commit 8d2bd92

Browse files
Merge fileselect-name-encoding-3043 into production (#3046)
* docs(FileSelect): add info about Name Html encoding * docs(FileSelect): add PR review suggestion --------- Co-authored-by: IvanDanchev <[email protected]>
1 parent 16a788e commit 8d2bd92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/fileselect/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The `FileSelectFileInfo` type contains the following properties:
2727
Property | Type | Description
2828
---------|----------|---------
2929
`Id` | `string` | The unique file identifier.
30-
`Name`|`string` | The file name.
30+
`Name`|`string` | The encoded file name, including the extension. One method to decode it is [`System.Net.WebUtility.HtmlDecode()`](https://learn.microsoft.com/en-us/dotnet/api/system.net.webutility.htmldecode). The file can be renamed in the [`OnSelect` event handler](#onselect).
3131
`Size` |`long` | The file size in bytes.
3232
`Extension` |`string` | The file extension.
3333
`InvalidExtension` | `bool` | A Boolean flag that shows if the file type is invalid.

components/upload/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The `UploadFileInfo` object has the following properties:
6161
| `InvalidExtension` | `bool` | Defines if the file violates the [`AllowedExtensions` value](slug:upload-overview#upload-parameters). |
6262
| `InvalidMaxFileSize` | `bool` | Defines if the file violates the [`MaxFileSize` value](slug:upload-overview#upload-parameters). |
6363
| `InvalidMinFileSize` | `bool` | Defines if the file violates the [`MinFileSize` value](slug:upload-overview#upload-parameters). |
64-
| `Name` | `string` | The **encoded** file name, including the extension. One method to decode it is [`System.Net.WebUtility.HtmlDecode()`](https://learn.microsoft.com/en-us/dotnet/api/system.net.webutility.htmldecode). The file name received by the controller (endpoint) is **not encoded**. The [file can be renamed](#renaming-a-file) in the [`OnSelect`](#onselect) and [`OnUpload`](#onupload) handlers. |
64+
| `Name` | `string` | The encoded file name, including the extension. One method to decode it is [`System.Net.WebUtility.HtmlDecode()`](https://learn.microsoft.com/en-us/dotnet/api/system.net.webutility.htmldecode). The file name received by the controller (endpoint) is not encoded. The [file can be renamed](#renaming-a-file) in the [`OnSelect`](#onselect) and [`OnUpload`](#onupload) event handlers. |
6565
| `Progress` | `int` | The uploaded percentage of the file in the [`OnProgress` event](#onprogress). |
6666
| `Size` | `long` | The file size in bytes. |
6767
| `Status` | [`UploadFileStatus` enum](slug:Telerik.Blazor.UploadFileStatus) | The current status of the file in the context of the Upload component (`Selected`, `Uploading`, `Uploaded`, `Failed`). |

0 commit comments

Comments
 (0)