# Automatic assign picture to the product

**URL:** <https://forum.shopware.com/t/automatic-assign-picture-to-the-product/38649>\
**Category:** Administration\
**Created:** [30. Juli 2016 um 21:16 UTC](https://forum.shopware.com/t/automatic-assign-picture-to-the-product/38649 "2016-07-30T21:16:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkoS](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@MarkoS](https://forum.shopware.com/u/MarkoS)\
**Post date:** [30. Juli 2016 um 21:16 UTC](https://forum.shopware.com/t/automatic-assign-picture-to-the-product/38649/1 "2016-07-30T21:16:45Z")

</div>

Hi guys

I have several thousand products and pictures. I want to assign a picture to product automatically. My idea is to update the product in the MySQL database with the picture link, however Shopware 5.2 is not keeping the pictures in a single folder but in subfolder automatically generated by the hash.&nbsp;

Is there a way to handle this?&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [31. Juli 2016 um 07:06 UTC](https://forum.shopware.com/t/automatic-assign-picture-to-the-product/38649/2 "2016-07-31T07:06:32Z")

</div>

You would have to look into the API, and let Shopware to manage the images.
