nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

Two images are not uploading (only first one)

Open SebastianBotez opened this issue 1 year ago • 1 comments

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)

Screenshot 2023-07-20 at 01 45 10

I am doing something wrong?

SebastianBotez avatar Jul 19 '23 22:07 SebastianBotez