whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
778 stars 230 forks source link

Two images are not uploading (only first one) #477

Open SebastianBotez opened 11 months ago

SebastianBotez commented 11 months ago

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 commented 11 months ago

Ok I found something strange. When i try to upload a different image from what I uploaded it seems to work. Maybe there is a file size limit on my php settings. Gonna come back with updates. Thank you!