magento / magento/magento2

Product Gallery Image Uploading Not In Order

Open
#39,286 14 comments 0 reactions 0 assignees View on GitHub

@satishashilwar is already working on this.

Since Dec 15, 2025.

  • #40366 by @satishashilwar — open
Area: Product Component: Image Issue: Confirmed Priority: P2 Progress: ready for dev Reported on 2.4.7 Reproduced on 2.4.x
Dominant language
PHP
Stars
12.2k
Forks
9.4k
PR merge metrics
No merged PRs in 30d

Description

Preconditions and environment
  • Magento 2.4.7 >
Steps to reproduce
  1. Create a new simple product in the backend.
  2. Give it a name, sku and price.
  3. Save the product.
  4. Go to the Images And Videos tab.
  5. Select the browse to find element.
  6. Now select multiple images while holding command.
  7. Then select open
Expected result

The images you upload are shown in the gallery in order.

Actual result

The images are in a random order and not how you select them

Additional information

In version 2.4.6 this was not the case. It is since 2.4.7.

Release note

No response

Triage and priority
  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the upload flow in the Magento 2.4.7 backend under Images and Videos, then compare its ordering with 2.4.6. Review the open pull request #40366 before starting; the issue is done when selecting multiple images preserves their selection order in the product gallery.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.