nova-flexible-content
nova-flexible-content copied to clipboard
Two images are not uploading (only first one)
Hello guys. When I set the layout for 2 images only the first image is uploading. For example, I need to set one image for "before" and another for "after".
Here is the code:
Flexible::make(__('Flexible content'), 'flexible_content') ->addLayout('Before and after', 'wysiwyg', [ Image::make('Before'), Image::make('After'), ])
And here is the database insert:
[{"layout":"wysiwyg","key":"2LJJ6Zmt50jffjsD","attributes":{"before":"Q7Z2vH02yVXN3IeiI6QsHv9bL9YwsZ8Y2Zr6qY9U.jpg"}}]
It seems that the request is sending the "after" file but is not taken into consideration. (attached image)
I am doing something wrong?