Skip to content

Commit 455b30c

Browse files
authored
docs(FileSelect): add info about Name Html encoding (#3043)
* docs(FileSelect): add info about Name Html encoding * docs(FileSelect): add PR review suggestion
1 parent 6d69639 commit 455b30c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy