# How to list all files in a Supabase Bucket as a data source?

**URL:** <https://community.weweb.io/t/how-to-list-all-files-in-a-supabase-bucket-as-a-data-source/7273>\
**Category:** Tips and Hacks\
**Created:** [February 26, 2024, 8:59pm UTC](https://community.weweb.io/t/how-to-list-all-files-in-a-supabase-bucket-as-a-data-source/7273 "2024-02-26T20:59:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imb](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@imb](https://community.weweb.io/u/imb)\
**Post date:** [February 26, 2024, 8:59pm UTC](https://community.weweb.io/t/how-to-list-all-files-in-a-supabase-bucket-as-a-data-source/7273/1 "2024-02-26T20:59:20Z")

</div>

Super noob question - but can I have my supabase bucket as a data source? I want to display files that a user has uploaded to a supabase bucket.

Is the only way to display the files by storing the URLs to the files in an array or can I use the dynamic connection from the supabase plugin?

Thank you!

---

<div class="post-metadata">

**Author:** ![jaredgibb](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jaredgibb](https://community.weweb.io/u/jaredgibb)\
**Post date:** [February 26, 2024, 11:42pm UTC](https://community.weweb.io/t/how-to-list-all-files-in-a-supabase-bucket-as-a-data-source/7273/2 "2024-02-26T23:42:07Z")

</div>

> [@imb](#):
>
> Is the only way to display the files by storing the URLs to the files in an array or can I use the dynamic connection from the supabase plugin?

this is probably the most convenient for record keeping purposes, but no. even data objects are subject to RLS, so you _could_ get away with just setting rules on your DB to only let the user see his/her/their files

> **[Storage Access Control | Supabase Docs](https://supabase.com/docs/guides/storage/security/access-control)**
>
> Learn how to restrict Supabase file uploads.

---

<div class="post-metadata">

**Author:** ![Corner](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@Corner](https://community.weweb.io/u/Corner)\
**Post date:** [June 3, 2024, 3:17pm UTC](https://community.weweb.io/t/how-to-list-all-files-in-a-supabase-bucket-as-a-data-source/7273/3 "2024-06-03T15:17:10Z")

</div>

Is it relevant to do as for users, i.e. to replicate in a public table the uploaded files in the bucket, in order to bind them to a collection and display them?
