# Upload a file in Bubble from API

**URL:** <https://forum.bubble.io/t/upload-a-file-in-bubble-from-api/215502>\
**Category:** APIs\
**Created:** [July 14, 2022, 6:47pm UTC](https://forum.bubble.io/t/upload-a-file-in-bubble-from-api/215502 "2022-07-14T18:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan.lefebvre](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jonathan.lefebvre](https://forum.bubble.io/u/jonathan.lefebvre)\
**Post date:** [July 14, 2022, 6:47pm UTC](https://forum.bubble.io/t/upload-a-file-in-bubble-from-api/215502/1 "2022-07-14T18:47:48Z")

</div>

Hi, is there a way to directly upload a file in Bubble S3 Bucket of my app?

I’m sending a file to be process elsewere and it take time before the processing end, so I need to do it in 2 step.

Step 1 : Sending the file, i’m all good for that.  
Step 2 : Give back the file (After maybe 6 min, so it cannot be handle on the same API request)  
This is where I do not know how to proceed, I have binary and text files that need to be sent back to bubble but I don’t see how. My external processing system does not handle url, so it need to send back the data directly. It may weight around 60Mo per files.

How can I do it?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 14, 2022, 6:59pm UTC](https://forum.bubble.io/t/upload-a-file-in-bubble-from-api/215502/2 "2022-07-14T18:59:13Z")

</div>

I don’t know if you could use the File API. However, if you upload a lot of files of this size, it will be better to create your own S3 bucket that will be cheaper.  
I’m not sure of your actually settings and case so it’s hard to know the best option for you.

---

<div class="post-metadata">

**Author:** ![jonathan.lefebvre](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jonathan.lefebvre](https://forum.bubble.io/u/jonathan.lefebvre)\
**Post date:** [July 15, 2022, 3:47pm UTC](https://forum.bubble.io/t/upload-a-file-in-bubble-from-api/215502/3 "2022-07-15T15:47:37Z")

</div>

Thank you, “File API” was the keyword I was missing to be able to find what I needed. I was not able to find the following JSON structure :  
{  
“API\_KEY\_NAME”:“filename.ext”,  
“contents”:“Base64-encoded-content”,  
“private”:false  
}
