Sopamo / laravel-filepond

Laravel backend module for filepond uploads
MIT License
202 stars 56 forks source link

Undefined Index: 0 #43

Closed tomcrofty closed 3 years ago

tomcrofty commented 3 years ago

I've used filepond in the past but not for a couple months. When making the initial request to upload the file, I get Undefined Index: 0 in FilepondController.php on line 42.

$file = is_array($input) ? $input[0] : $input;

After having a play around, I found my request was actually an array within an array. You can see what filepond receives below. To actually get this I have to access $input[config('filepond.input_name')][0]. image

Either there's been a change because of Laravel 8 or I'm missing something very important.