# Using the AWS S3 storage

**URL:** <https://forum.bubble.io/t/using-the-aws-s3-storage/3131>\
**Category:** Need help\
**Created:** [May 23, 2016, 12:44pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131 "2016-05-23T12:44:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![wesley](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@wesley](https://forum.bubble.io/u/wesley)\
**Post date:** [May 23, 2016, 12:44pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/1 "2016-05-23T12:44:43Z")

</div>

Hi All

Can anyone point me in the right direction as to how to upload files to Bubble’s AWS S3 storage please?

Many thanks

---

<div class="post-metadata">

**Author:** ![hdavy2002](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hdavy2002/32/2141_2.png) [@hdavy2002](https://forum.bubble.io/u/hdavy2002)\
**Post date:** [May 23, 2016, 1:42pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/2 "2016-05-23T13:42:48Z")

</div>

As far as I understand. When you add the file up-loader or image up-loader element. All files uploaded via them automatically stores on Amazon S3. The file link is automatically generated in the element options.

Do you have something specific in mind?

---

<div class="post-metadata">

**Author:** ![wesley](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@wesley](https://forum.bubble.io/u/wesley)\
**Post date:** [May 23, 2016, 2:19pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/3 "2016-05-23T14:19:32Z")

</div>

Thanks for the quick reply. Yes, specifically I’d like to use the bulk action on a dataset (under the data tab) to run a workflow which grabs the filepath and uploads the image file from a URL (currently on another server) to Bubble’s AWS S3 storage. Therefore I can’t use the file up-loader or image up-loader element. I am building an image library.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [May 23, 2016, 2:33pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/4 "2016-05-23T14:33:45Z")

</div>

So I think what you need to do is add :saved in s3 when you are storing the file. So instead of saving the link to the external file it will store on s3 and save the link to that.

---

<div class="post-metadata">

**Author:** ![wesley](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@wesley](https://forum.bubble.io/u/wesley)\
**Post date:** [May 23, 2016, 3:02pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/5 "2016-05-23T15:02:07Z")

</div>

Thanks. Is there any documentation to this anywhere?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [May 23, 2016, 3:52pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/6 "2016-05-23T15:52:20Z")

</div>

If you search for s3 in Bubble reference you will find a short description.

---

<div class="post-metadata">

**Author:** ![Diego](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/diego/32/1187_2.png) [@Diego](https://forum.bubble.io/u/Diego)\
**Post date:** [May 23, 2016, 4:57pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/7 "2016-05-23T16:57:51Z")

</div>

I confirm @NigelG suggestion. I’m doing it like this in my app. When the image comes from a url, you have to specify “saved in S3”, if the image comes from the image uploader it’s not necessary. Bear in mind that if you try to save an image from the image uploader using the “saved in S3”, you app will not work, and the image will not be saved.

---

<div class="post-metadata">

**Author:** ![wesley](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@wesley](https://forum.bubble.io/u/wesley)\
**Post date:** [May 23, 2016, 5:13pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/8 "2016-05-23T17:13:10Z")

</div>

Thanks but which ‘action’ do I use in the workflow builder?

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ben/32/1872_2.png) [@ben](https://forum.bubble.io/u/ben)\
**Post date:** [May 23, 2016, 5:25pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/9 "2016-05-23T17:25:30Z")

</div>

I’ve been trying to implement s3 into my app. Last I tried, using the blockspring/s3 connector, things weren’t working. Are they working now?

---

<div class="post-metadata">

**Author:** ![Diego](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/diego/32/1187_2.png) [@Diego](https://forum.bubble.io/u/Diego)\
**Post date:** [May 23, 2016, 5:46pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/10 "2016-05-23T17:46:23Z")

</div>

That’s an example of a workflow in my app. In my case I get the image from Bing images API, which returns a media url, then I just save the input’s value (the url) to S3

![](https://us1.discourse-cdn.com/bubble/original/2X/6/67b116a9e096415f63db8567689d8241657de0dd.png)

---

<div class="post-metadata">

**Author:** ![Diego](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/diego/32/1187_2.png) [@Diego](https://forum.bubble.io/u/Diego)\
**Post date:** [May 23, 2016, 5:48pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/11 "2016-05-23T17:48:27Z")

</div>

This action gets the image from the url and saves it to S3

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [May 23, 2016, 5:55pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/12 "2016-05-23T17:55:51Z")

</div>

Yes, as above. If you had an external URL, you could save it as above to s3.

It needs to be part of a workflow action storing data though.

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ben/32/1872_2.png) [@ben](https://forum.bubble.io/u/ben)\
**Post date:** [May 23, 2016, 6:00pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/13 "2016-05-23T18:00:53Z")

</div>

but you can’t use the uploader to upload to your own s3, correct?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [May 23, 2016, 6:02pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/14 "2016-05-23T18:02:19Z")

</div>

Not as far as I know.

---

<div class="post-metadata">

**Author:** ![atlantasbestsound](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@atlantasbestsound](https://forum.bubble.io/u/atlantasbestsound)\
**Post date:** [November 15, 2017, 3:35am UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/15 "2017-11-15T03:35:37Z")

</div>

I’ve been searching around for a solution to uploading large files. Has anyone made any progress on this?

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [April 10, 2018, 6:03pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/16 "2018-04-10T18:03:58Z")

</div>

Saving my life, once again. Thank you! 🏅

---

<div class="post-metadata">

**Author:** ![ehr.nucleon](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@ehr.nucleon](https://forum.bubble.io/u/ehr.nucleon)\
**Post date:** [June 28, 2021, 6:35am UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/17 "2021-06-28T06:35:18Z")

</div>

@NigelG `:saved to s3` works for external links (`https://...`) as expected, but not for data URIs (`data:image/png;base64,ABCD...`). Is there a way to use the s3 feature to upload a file to s3? The input is coming from a multiline text input - a data URI with base64 format.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [June 28, 2021, 10:41am UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/18 "2021-06-28T10:41:00Z")

</div>

Ooo, gosh. That is a fun one!

So convert base64 image data into an image and store on s3?

---

<div class="post-metadata">

**Author:** ![ehr.nucleon](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@ehr.nucleon](https://forum.bubble.io/u/ehr.nucleon)\
**Post date:** [June 28, 2021, 4:14pm UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/19 "2021-06-28T16:14:24Z")

</div>

Yes exactly!

Also note that I can just save the base64-encoded data itself in bubble, but it-

1. takes more space
2. cannot be used for `Download a file` workflow action (it requires having an actual http(s) URL).
3. The `xyz_object's saved_image's file_name` is (obviously) empty in case of a base64 data URI.

I know I can do this by creating a temp file on my own server and then use bubble to upload it to s3, but it would be good if this could be done inside bubble. I am open to any custom-javascript solutions as long as this can be done on client-side.

And of course I guess it wouldn’t be restricted to just images but any `file` by decoding base64 data.

---

<div class="post-metadata">

**Author:** ![PineappleJoe](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@PineappleJoe](https://forum.bubble.io/u/PineappleJoe)\
**Post date:** [July 7, 2021, 6:24am UTC](https://forum.bubble.io/t/using-the-aws-s3-storage/3131/20 "2021-07-07T06:24:07Z")

</div>

Im trying to do the same thing too. I create an image in javascript locally - I push to bubble with the javascript to bubble thingy. But now im stuck because I dont know how to save this image to s3. I can view it locally within bubble but I cant save it.

[Next page](https://forum.bubble.io/t/using-the-aws-s3-storage/3131.md?page=2)
