api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
482 stars 130 forks source link

useOnSubmit - findFile null safe value access #560

Closed PawelSuwinski closed 4 months ago

PawelSuwinski commented 4 months ago

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 .