Skip to content

[HttpKernel] Fix #[MapUploadedFile] handling for optional file uploads #60483

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

Open
wants to merge 1 commit into
base: 7.2
Choose a base branch
from

Conversation

santysisi
Copy link
Contributor

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #58590
License MIT

This PR fixes a bug with the #[MapUploadedFile] attribute in routes, where an optional ?UploadedFile parameter does not behave as expected when no file is provided.

@santysisi
Copy link
Contributor Author

It seems that the error reported by Psalm was resolved in version 7.3. What should I do in cases like this? 🤔

@santysisi santysisi force-pushed the fix/optional-mapuploadedfile-issue branch from 5f9bda8 to 10e5189 Compare May 20, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants