# Curl : Send local image to Bubble database

**URL:** <https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033>\
**Category:** APIs\
**Created:** [July 28, 2021, 4:43pm UTC](https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033 "2021-07-28T16:43:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas6](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nicolas6](https://forum.bubble.io/u/nicolas6)\
**Post date:** [July 28, 2021, 4:43pm UTC](https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033/1 "2021-07-28T16:43:15Z")

</div>

Hi !  
From my mac, I try to send a local image to my Bubbledatabase but it doesn’t work. I don’t know code so it’s really blurred. It’s seems like Bubble retrieve only the path but not the file.

I have this API workflow in my Bubble’s backend workflows with parameter “file” with type=image like this :

 ![Capture d’écran 2021-07-28 à 18.35.24](https://us1.discourse-cdn.com/bubble/original/3X/a/6/a68c1531c174292c5ebb2fa9c6ece729b23f3737.png)

And I try to create a new thing like this :

 ![Capture d’écran 2021-07-28 à 18.35.13](https://us1.discourse-cdn.com/bubble/original/3X/2/d/2dce318b805fd683d9d46cd7ed0e924380538897.png)

When I send the curl from my terminal, my new thing created but my field “photo” (type=image) is still empty.  
`curl -F file=@/Users/me/Documents/Postcard/Zoom/train.jpg https://alloricochet.bubbleapps.io/version-test/api/1.1/wf/photo`

I get this error in my terminal :  
`{"statusCode":400,"body":{"status":"MISSING_DATA","message":"Missing parameter for workflow photo: parameter file"}}`

I search similar topics in the forum but I didn’t find it.  
And sorry for my bad english !  
Thank you very much for your help !

---

<div class="post-metadata">

**Author:** ![nicolas6](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nicolas6](https://forum.bubble.io/u/nicolas6)\
**Post date:** [August 6, 2021, 10:35am UTC](https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033/2 "2021-08-06T10:35:28Z")

</div>

Can anybody help me ?  
Thank you very much

---

<div class="post-metadata">

**Author:** ![localprosnet](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/localprosnet/32/221635_2.png) [@localprosnet](https://forum.bubble.io/u/localprosnet)\
**Post date:** [October 21, 2021, 5:11pm UTC](https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033/3 "2021-10-21T17:11:26Z")

</div>

having trouble myself… any luck?

---

<div class="post-metadata">

**Author:** ![rowntreerob](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@rowntreerob](https://forum.bubble.io/u/rowntreerob)\
**Post date:** [October 22, 2021, 3:24am UTC](https://forum.bubble.io/t/curl-send-local-image-to-bubble-database/162033/4 "2021-10-22T03:24:02Z")

</div>

> [@nicolas6](#):
>
> I try to send a local image to my Bubbledatabase but it doesn’t work.

if you are trying to update data, then why are you not calling the data api?

ref docs for data api dont appear to support mapping of key value parms where typeOf the value is an image.

 ![Screenshot from 2021-10-21 20-19-12](https://us1.discourse-cdn.com/bubble/original/3X/b/6/b639da21012dd0bb62810a8ab143197688c6e5ee.png)

i’d review whether its WF api or Data api u want to call in order to update the data layer.

i’d review the ref docs for the chosen api to double check that keys and values used in parms actually allow type ““image”” .
