Skip to content

Conversation

@jlchavez
Copy link

The conversion in BrowserFileFromFormFile maps from IFormFile the Name property as if it was the FileName, so instead of [File.ext] the Name will have [Input.File].

This change will fix this conversion error so that the filename is correct.

IBrowserFile FormDataConverter Mismatch between Name and FileName

Fixes BrowserFileFromFormFile to get the correct Name for the uploaded file

Description

BrowserFileFromFormFile retrieves from IFileInput the property from Name and not from FileName, so just a minimal fix.

Fixes #56832

The conversion in BrowserFileFromFormFile maps from IFormFile the Name property as if it was the FileName, so instead of [File.ext] the Name will have [Input.File].

This change will fix this conversion error so that the filename is correct.
@jlchavez jlchavez requested a review from a team as a code owner July 16, 2024 18:27
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Jul 16, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 16, 2024
@dotnet-policy-service
Copy link
Contributor

Thanks for your PR, @jlchavez. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we should add a test.

@javiercn javiercn added the pr: pending author input For automation. Specifically separate from Needs: Author Feedback label Jul 17, 2024
@dotnet-policy-service
Copy link
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jul 24, 2024
@dotnet-policy-service
Copy link
Contributor

Hi @jlchavez.
It seems you haven't touched this PR for the last two weeks. To avoid accumulating old PRs, we're marking it as stale. As a result, it will be closed if no further activity occurs within 4 days of this comment. You can learn more about our Issue Management Policies here.

@dotnet-policy-service dotnet-policy-service bot added the stale Indicates a stale issue. These issues will be closed automatically soon. label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun pr: pending author input For automation. Specifically separate from Needs: Author Feedback stale Indicates a stale issue. These issues will be closed automatically soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IBrowserFile Binding Converter Error

2 participants