Skip to content

[Issue] add isMultipleFiles property to image form element template #39219

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #36325: add isMultipleFiles property to image form element template


Prevent the "Browse to find or drag image here" button to disappear when an image is added in a multiple files image form element.

Description (*)

The only modification in the code is the addition of the already existing (and utilized) property "isMultipleFiles" into the condition that determine whether the "Browse to find or drag image here" button should be display or not.

In doing so, when the user add an image to the multiple files image form element, the "Browse to find or drag image here" is still there.

This is useful to inform the user that the form element can take multiple images and that these images can be drag and drop, especially when the form element is initially populated with existing images.

Manual testing scenarios (*)

  1. Create an adminhtml UI form with an imageUploader element.
  2. Define the "isMultipleFiles" boolean property to true in this element.
  3. Check the form, the "Browse to find or drag image here" button disappear after the first image is uploaded.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: MediaGalleryIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressProgress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions