# Shopware Upload Media file as body content

**URL:** <https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568>\
**Category:** Programmierung\
**Created:** [18. Oktober 2024 um 14:55 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568 "2024-10-18T14:55:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [18. Oktober 2024 um 14:55 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/1 "2024-10-18T14:55:38Z")

</div>

Hi All  
I am trying to upload media resource directly as body but is not working.

Does anyone know how it works to send media content as body to shopware and how it works.

Please if someone has any idea how to do it please write in this tag.

---

<div class="post-metadata">

**Author:** ![gaxweb](https://avatars.discourse-cdn.com/v4/letter/g/ea5d25/32.png) [@gaxweb](https://forum.shopware.com/u/gaxweb)\
**Post date:** [21. Oktober 2024 um 10:00 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/2 "2024-10-21T10:00:11Z")

</div>

Have you read the manual? [Media Management | Admin API](https://shopware.stoplight.io/docs/admin-api/c042ae0cd330f-media-management)

If so, what exactly didn’t work?

---

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [22. Oktober 2024 um 08:31 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/3 "2024-10-22T08:31:54Z")

</div>

Hi @gaxweb  
yes I have read this manual and I need to use this approach Upload the resource directly because I can not save image local, am working on cloud.  
Please see the request below

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/e/b/eb7e425d0f8399850c4d4b37c8c7bf6037be66d6.png)

Continuing the discussion from [Shopware Upload Media file as body content](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568):

---

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [22. Oktober 2024 um 08:49 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/4 "2024-10-22T08:49:04Z")

</div>

I am sending body as Base 64

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/b/ab22d2105d9cbd72dcd2f71f634e44604882eb1f.png)

---

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [22. Oktober 2024 um 08:49 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/5 "2024-10-22T08:49:51Z")

</div>

Response from shopware is 204 but when go on shopware the image is blank

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/7/6/76923ddfea75a032497578d969f5ef9cc13a78a0.png)

---

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [22. Oktober 2024 um 08:50 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/6 "2024-10-22T08:50:23Z")

</div>

I am not understanding what I am sending wrong here

---

<div class="post-metadata">

**Author:** ![hamitagavlora](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hamitagavlora](https://forum.shopware.com/u/hamitagavlora)\
**Post date:** [23. Oktober 2024 um 14:25 UTC](https://forum.shopware.com/t/shopware-upload-media-file-as-body-content/105568/7 "2024-10-23T14:25:06Z")

</div>

@gaxweb Please if you can see my Issue and replay for a solution.
