dcasia / nova-filepond

A Nova field for uploading File, Image and Video using Filepond.
MIT License
48 stars 27 forks source link

500 error getServerIdFromPath() must be of the type string, array given #20

Closed paperscissors closed 3 years ago

paperscissors commented 3 years ago

Describe the bug Using the precise example from the README file, I receive the error Argument 1 passed to DigitalCreative\Filepond\Filepond::getServerIdFromPath() must be of the type string, array given, called in /Users/tomfilepp/work/ResultGroup/vendor/digital-creative/nova-filepond/src/Filepond.php on line 350 as a 500 error.

Logs The error points to line vendor/digital-creative/nova-filepond/src/Filepond.php:383 in Flare.io.

To Reproduce laravel_version: 7.27.0 php_version: 7.4.4 Nova version 3.0

Expected behavior Expected the page/form to load without a 500 error

Stacktraces See on Flare.io https://flareapp.io/share/A7Eqy47r#F71

Information about your project: Firefox 80.0.1 Served on Laravel Valet Filepond: 0.2.13

paperscissors commented 3 years ago

Okay, actually this is due to the casting of the field to an array. It seems like you can't actually directly do this like specified in the docs?