Unable to Access File Object From Post Data

I built a custom form to save data. But I cannot see and process this file object. I can only see [object File]. I expected to see UploadedFile object. How can I do that?

Screenshot 2024-01-24 at 13.32.54

Edit: I found the solution.

I was trying to get objects by using post() function. But right way is to use files() function. this gives you all file inputs from form data.

1 Like

Right on, you got the solution - the laravel documentation has more infos if you need it:

Thanks for your time. I will have a look at that doc.

1 Like