Skip to content
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

useOnSubmit - findFile null safe value access #560

Conversation

PawelSuwinski
Copy link
Contributor

Fix for lack of null safe property access while looking for file input.

Fix #559

Notice:

IMHO usage of hasFileField meta property should be dropped in favour of discovering File object by dataProvider itself, what is happening partly already ( containFile / findFile functions), and should be possible to override updateHttpMethod, multipart PUT request could be successfully processed on backend site by using for example notihnio/php-request-parser .

@PawelSuwinski PawelSuwinski changed the title null safe value access useOnSubmit - findFile null safe value access May 27, 2024
@PawelSuwinski PawelSuwinski merged commit 5782f76 into api-platform:main May 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot unset any property on 3.4.7
2 participants