# Image uploading issue using admin API - Python

**URL:** <https://forum.ghost.org/t/image-uploading-issue-using-admin-api-python/38591>\
**Category:** Developer help\
**Created:** [May 21, 2023, 11:37am UTC](https://forum.ghost.org/t/image-uploading-issue-using-admin-api-python/38591 "2023-05-21T11:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Azeem](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/abdul_azeem/32/24508_2.png) [@Abdul\_Azeem](https://forum.ghost.org/u/Abdul_Azeem)\
**Post date:** [May 21, 2023, 11:37am UTC](https://forum.ghost.org/t/image-uploading-issue-using-admin-api-python/38591/1 "2023-05-21T11:37:46Z")

</div>

Hi,

I am trying to upload image using admin API, here is my code:

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/2/e/2e5707c6b5d1cb3786b95b805a477919a7a9fef6.png)

But I am getting the following error:  
{“errors”:[{“message”:“Please select an image.”,“context”:null,“type”:“ValidationError”,“details”:null,“property”:null,“help”:null,“code”:null,“id”:“658e71a0-f7c7-11ed-a43a-35330461017c”,“ghostErrorCode”:null}]}

Any solutions would be appreciated.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [May 21, 2023, 3:54pm UTC](https://forum.ghost.org/t/image-uploading-issue-using-admin-api-python/38591/2 "2023-05-21T15:54:09Z")

</div>

I assume you’ve already looked at this?

> **[Ghost Admin API Documentation](https://ghost.org/docs/admin-api/#images)**
>
> Manage content via Ghost's Admin API, with secure role-based authentication. Read more on Ghost Docs 👉

I don’t know python well enough to debug your code, but the error is suggestive of a formatting/encoding issue? You’re sure the file exists at that path?
