Ad

October CMS Media Finder

I have recently created a plugin (using the 'builder plugin') where I have a field for attaching images (using 'media finder widget'). Everything is working fine - I can upload an image or choose one from the media library. After successful saving, when I go back to the recently saved record, the image isn't shown... How can I fix this?

Thanks!

Ad

Answer

'media finder widget' not working with relation type 'file attachment', like this:

public $attachOne = [
   'avatar' => 'System\Models\File'
];

try to use another type (for example: json)

Ad
source: stackoverflow.com
Ad