Skip to content

Category A image replaced by uploading to Category B #23376

@stephan-cream

Description

@stephan-cream

Preconditions (*)

  1. Magento version: 2.3.*
  2. PHP version: Any
  3. SQL version: Any

Steps to reproduce (*)

  1. Add an image with the name 'test.jpg' to Category A
  2. Check the image (should be uploaded properly).
  3. Add a different image with the same name 'test.jpg' to Category B.
  4. Check the image (should be uploaded properly).
  5. Go back to check the image of Category A (image replaced by image uploaded to Category B).

Expected result (*)

  1. The image for Category A is what is uploaded for Category A.
  2. The image for Category B is what is uploaded for Category B.

Actual result (*)

  1. The image for Category A is what is uploaded for Category B (basically it's replaced).
  2. The image for Category B is what is uploaded for Category B.

This is caused because there is no category identifier differentiation.
Everything is saved directly under /media/catalog/category/.
In this example, when checking the URL of the image on both categories it was:
/media/catalog/category/test.jpg

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions