dcasia / nova-filepond

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

trimSlashes problem after Upgrade to nova 2.5 #5

Closed Crazymodder closed 4 years ago

Crazymodder commented 4 years ago

Hi,

After upgrading to Nova 2.5 I got this error:

Argument 1 passed to DigitalCreative\Filepond\Filepond::trimSlashes() must be of the type string, null given, called in /var/www/vendor/digital-creative/nova-filepond/src/Filepond.php on line 160

Thats how I implement Fielpond in my Nova Ressource

Filepond::make(__('product.image.title'), 'image') ->help(__('product.image.help')) ->mimesTypes(['image/jpeg', 'image/jpg', 'image/gif', 'image/png']) ->disk('public') ->storeAs(function (File $file) { return Str::random(13) . '.' . $file->getExtension(); }),

milewski commented 4 years ago

@Crazymodder Fixed on version v0.2.7