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".
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!
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?