How to restrict users to obtain only their own uploaded file list #10176
Unanswered
coloz
asked this question in
Feature Requests
Replies: 2 comments
|
You might be able to just set select RLS on storage.objects to only allow access to |
0 replies
|
The problem has been solved: this.supabaseStorage = createClient(environment.supabaseUrl, environment.supabaseKey, <any>{
db: {
schema: 'storage'
}
})
let { data, error } = await this.supabaseStorage
.from('objects')
.select('*')
.eq('owner', this.user.id)
.eq('bucket_id', 'image') |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I use the code to get file list:
I want to get the files uploaded by the current user, is there an API to implement this requirement?
All reactions