# Images are broken?

**URL:** <https://forum.bubble.io/t/images-are-broken/353302>\
**Category:** Database\
**Created:** [December 27, 2024, 2:54pm UTC](https://forum.bubble.io/t/images-are-broken/353302 "2024-12-27T14:54:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianno.09](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@julianno.09](https://forum.bubble.io/u/julianno.09)\
**Post date:** [December 27, 2024, 2:54pm UTC](https://forum.bubble.io/t/images-are-broken/353302/1 "2024-12-27T14:54:59Z")

</div>

How is the correct way to permanently upload files to Bubble Storage?

When upload, I mark as private and attach to a thing, then saves the file URL on a related thing, but after some days the URL return a broken image.

Example of image saved URL:  
`https://appurl.com/fileupload/f1734631534875x810350449529845500/image.png`

This URL redirects to a cdn path, but after some days the image returns a broken object (And yes, I’m logged with permissions to see the file):

 ![Captura de Tela 2024-12-27 às 11.25.09](https://us1.discourse-cdn.com/bubble/original/3X/6/6/66efb375d2bf649908d76a45551f38bb88b0e962.png)

This is the default behavior (and it’s bugged) or the /fileupload URL’s are temporary?

---

<div class="post-metadata">

**Author:** ![Baloshi69](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/baloshi69/32/136122_2.png) [@Baloshi69](https://forum.bubble.io/u/Baloshi69)\
**Post date:** [December 27, 2024, 3:03pm UTC](https://forum.bubble.io/t/images-are-broken/353302/2 "2024-12-27T15:03:08Z")

</div>

whne you make it private, it will be visibl to the user it was created by, and you can see it in [bubble.io](http://bubble.io) with current user being that user, see is it not visible like that

---

<div class="post-metadata">

**Author:** ![julianno.09](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@julianno.09](https://forum.bubble.io/u/julianno.09)\
**Post date:** [December 27, 2024, 4:53pm UTC](https://forum.bubble.io/t/images-are-broken/353302/3 "2024-12-27T16:53:12Z")

</div>

When user is not allowed, the URL shows a Permission denied error. In my case, the user is allowed to view the file, but when redirect to URL, the broken image appears (as in my screenshot)

---

<div class="post-metadata">

**Author:** ![Zeroic](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zeroic/32/246980_2.png) [@Zeroic](https://forum.bubble.io/u/Zeroic)\
**Post date:** [December 27, 2024, 5:36pm UTC](https://forum.bubble.io/t/images-are-broken/353302/4 "2024-12-27T17:36:05Z")

</div>

Did you check the URL? When you are redirecting to a Bubble stored file URL, you need to prefix the URL with **https:** in order for it to be parsed correctly

---

<div class="post-metadata">

**Author:** ![julianno.09](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@julianno.09](https://forum.bubble.io/u/julianno.09)\
**Post date:** [December 27, 2024, 5:58pm UTC](https://forum.bubble.io/t/images-are-broken/353302/5 "2024-12-27T17:58:02Z")

</div>

Yes, the saved URL contains https, as the format below:

`https://appurl.com/fileupload/f1734631534875x810350449529845500/image.png`

Theoretically, this URL always redirects to the file, even if Bubble changes the cdn path (that is temporary). Or not?

Anyways, the final path (cdn) have https too, and it’s broke.

 ![Captura de Tela 2024-12-27 às 14.53.40](https://us1.discourse-cdn.com/bubble/original/3X/5/7/57f152fffa87226650fa6550ca46da9a1b33154f.png)
