Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SebastianBotez opened this issue Jul 19, 2023 · 1 comment
Open

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

SebastianBotez opened this issue Jul 19, 2023 · 1 comment

Comments

@SebastianBotez
Copy link

SebastianBotez commented Jul 19, 2023

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant