# Images upload via API sometimes results in an image with filesize = 0

**URL:** <https://forum.shopware.com/t/images-upload-via-api-sometimes-results-in-an-image-with-filesize-0/102158>\
**Category:** Shopware 6 (English)\
**Created:** [2. Dezember 2023 um 14:16 UTC](https://forum.shopware.com/t/images-upload-via-api-sometimes-results-in-an-image-with-filesize-0/102158 "2023-12-02T14:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mp11](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mp11](https://forum.shopware.com/u/mp11)\
**Post date:** [2. Dezember 2023 um 14:16 UTC](https://forum.shopware.com/t/images-upload-via-api-sometimes-results-in-an-image-with-filesize-0/102158/1 "2023-12-02T14:16:08Z")

</div>

Anyone ever faced this problem? When uploading via API I only get a 204 status code without any details so I have to make an additional searchMedia call in order to verify the file’s filesize is greater than 0 for every image I uploaded. It would at least help if I could configure the system so it doesn’t create such image hulks without content, is this possible?

Regards, Michael
