# Uploading an image via Python script using Glide API documentation

**URL:** <https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320>\
**Category:** Ask for Help\
**Created:** [February 25, 2025, 7:51am UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320 "2025-02-25T07:51:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattGlides](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MattGlides](https://community.glideapps.com/u/MattGlides)\
**Post date:** [February 25, 2025, 7:51am UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/1 "2025-02-25T07:51:41Z")

</div>

Want to do a mass import of Vehicle information into Glide Tables using a python script, however each vehicle also has an image attached to it. How would I get it into Glide? An example of how to upload an image via Glide’s API would be helpful

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [February 25, 2025, 12:53pm UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/2 "2025-02-25T12:53:25Z")

</div>

Uploading files into Glide Tables from the Glide API is not supported at the moment.

@Darren_Murphy Correct me if I am wrong.

---

<div class="post-metadata">

**Author:** ![MattGlides](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MattGlides](https://community.glideapps.com/u/MattGlides)\
**Post date:** [February 25, 2025, 4:03pm UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/3 "2025-02-25T16:03:27Z")

</div>

Would be a nice feature to implement, would make mass data uploads a lot easier.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 26, 2025, 12:31am UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/4 "2025-02-26T00:31:01Z")

</div>

So that image doesn’t exist in the form of a URL at the moment, right?

---

<div class="post-metadata">

**Author:** ![MattGlides](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MattGlides](https://community.glideapps.com/u/MattGlides)\
**Post date:** [February 27, 2025, 9:17am UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/5 "2025-02-27T09:17:39Z")

</div>

Correct, we are looking at solutions to convert them though since the file isn’t possible atm.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 27, 2025, 9:31am UTC](https://community.glideapps.com/t/uploading-an-image-via-python-script-using-glide-api-documentation/80320/6 "2025-02-27T09:31:12Z")

</div>

I’ve had success with smaller files (1-2 page PDFs) by first base64 encoding them, then pushing that through the API. They can then be displayed in a webview component using something like the following in a template column:

```auto
data:application/pdf;base64,{data}

```

An alternative might be the Upload File action in a server side workflow. I’ve not tried this, so I don’t know if it will work.
