-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed Upload New Image button not working in Pagebuilder when trying to change image #39576
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
Fixed Upload New Image button not working in Pagebuilder when trying to change image #39576
Conversation
Hi @manan-patel1. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @manan-patel1,
Thanks for the contribution!
The changes seems fine to us and the failed tests seems flaky except static failure for which we need to create an approval JIRA ticket.
However, please add an automated test to verify that the bug is fixed in accordance with the Definition of Done (DoD).
Thanks
I don't see why an approval ticket is needed to fix the static tests, these seem like issues that can be fixed easily, no?
|
@magento run all tests |
Thanks @hostep, my bad, we can resolve the static test failures. @manan-patel1 As I can see, you have already started working on it, we still can see some failures. Please fix those and add an automated test for the fix. Thanks |
@magento run all tests |
Hi @engcom-Hotel , |
@magento run all tests |
Hello @manan-patel1, As per the review comment, you need to add an automated test as well for the fix include in this PR. Please do the needful for the same. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @manan-patel1
Thanks for contribution.
However file-uploader.js
is a common component used in multiple modules. We have separate repository for the Page Builder and I believe this PR should be implemented to Page Builder module.
Hello @manan-patel1, Please look into this #39576 (review) made by @Den4ik. I also agree with the point raised. Please create a PR on PageBuilder repo here. Meanwhile we are moving this PR on hold bucket. Thanks |
Hello @manan-patel1, We have noticed that this PR has not been updated for a while. Therefore, we are closing it for now. Thank you for your valuable contribution! |
Still an issue on 2.4.7-p5. I've opened an issue on the PageBuilder GitHub, referencing the original issue here |
Preconditions (*)
Description (*)
In Adminside, The image is uploaded for the first time in pagebuilder. When we try to change the uploaded image then the 'Upload New Image' button does not work.
Related Issue
Fixes #39063
Manual testing scenarios (*)
appear.
issue-reproduce.mp4
Expected result
You should be able to upload new images after clicking "Upload New Image".
Actual result
No response when clicking "Upload New Image".
Additional Information
File: magento/module-ui/view/base/web/js/form/element/file-uploader.js
In Magento 2.4.7, the jQuery file uploader (jquery.fileuploader.js) has been replaced with Uppy (uppy.min.js), leading to changes in the JS logic of file-uploader.js. The replaceInputTypeFile function binds the click event only to the "Upload Image" button inside .pagebuilder-image-empty-preview (used when no image is uploaded). However, it misses the button in the toolbar that appears on hover for content types like Banner, Slider, and Image (when an image is already uploaded).
Contribution checklist (*)