Skip to content

Merge fileselect-name-encoding-3043 into production #3046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/fileselect/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 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.
Expand Down
2 changes: 1 addition & 1 deletion components/upload/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`). |
Expand Down