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

category import: images that get imported multiple times #386

Open
kkrieger85 opened this issue Jul 6, 2017 · 1 comment
Open

category import: images that get imported multiple times #386

kkrieger85 opened this issue Jul 6, 2017 · 1 comment

Comments

@kkrieger85
Copy link

From your code:

     * @todo Solve the problem with images that get imported multiple times.

Why not always use

$uploader->setAllowRenameFiles(false);

At least for category images customer could take care about different named images.

Other alternative:
Cleaning up unused images after import.

@barbazul
Copy link
Contributor

barbazul commented Jul 6, 2017

I guess that wouldn't do it in scenarios where image filename is tied to some naming logic not in control of the Magento developer. Like a legacy software using [category_id].jpg or something.

Maybe an md5 check?

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

2 participants