From 0c8a68b39b49541f87eece3e9a06c6e16c15347d Mon Sep 17 00:00:00 2001 From: IvanDanchev Date: Tue, 17 Jun 2025 14:36:15 +0300 Subject: [PATCH 1/2] docs(FileSelect): add info about Name Html encoding --- components/fileselect/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fileselect/events.md b/components/fileselect/events.md index 9ca1be216..0bc63e44e 100644 --- a/components/fileselect/events.md +++ b/components/fileselect/events.md @@ -27,7 +27,7 @@ The `FileSelectFileInfo` type contains the following properties: Property | Type | Description ---------|----------|--------- `Id` | `string` | The unique file identifier. -`Name`|`string` | The file name. +`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`](#onselect) handler. `Size` |`long` | The file size in bytes. `Extension` |`string` | The file extension. `InvalidExtension` | `bool` | A Boolean flag that shows if the file type is invalid. From ed97e2377578a89482a13bc2d6223b1124c91027 Mon Sep 17 00:00:00 2001 From: IvanDanchev Date: Wed, 18 Jun 2025 16:01:14 +0300 Subject: [PATCH 2/2] docs(FileSelect): add PR review suggestion --- components/fileselect/events.md | 2 +- components/upload/events.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/fileselect/events.md b/components/fileselect/events.md index 0bc63e44e..b0659c79e 100644 --- a/components/fileselect/events.md +++ b/components/fileselect/events.md @@ -27,7 +27,7 @@ The `FileSelectFileInfo` type contains the following properties: Property | Type | Description ---------|----------|--------- `Id` | `string` | The unique file identifier. -`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`](#onselect) handler. +`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). `Size` |`long` | The file size in bytes. `Extension` |`string` | The file extension. `InvalidExtension` | `bool` | A Boolean flag that shows if the file type is invalid. diff --git a/components/upload/events.md b/components/upload/events.md index 144016293..40569274f 100644 --- a/components/upload/events.md +++ b/components/upload/events.md @@ -61,7 +61,7 @@ The `UploadFileInfo` object has the following properties: | `InvalidExtension` | `bool` | Defines if the file violates the [`AllowedExtensions` value](slug:upload-overview#upload-parameters). | | `InvalidMaxFileSize` | `bool` | Defines if the file violates the [`MaxFileSize` value](slug:upload-overview#upload-parameters). | | `InvalidMinFileSize` | `bool` | Defines if the file violates the [`MinFileSize` value](slug:upload-overview#upload-parameters). | -| `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. | +| `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. | | `Progress` | `int` | The uploaded percentage of the file in the [`OnProgress` event](#onprogress). | | `Size` | `long` | The file size in bytes. | | `Status` | [`UploadFileStatus` enum](slug:Telerik.Blazor.UploadFileStatus) | The current status of the file in the context of the Upload component (`Selected`, `Uploading`, `Uploaded`, `Failed`). |