silentworks
10/07/2021, 8:34 AMwill martian
10/07/2021, 11:40 AMuser
10/08/2021, 12:39 AM! Class self.PythonAddict = True
10/08/2021, 7:02 AMcopple
10/08/2021, 10:43 AMYelloJello
10/08/2021, 10:53 AMYelloJello
10/08/2021, 10:54 AMseufernandez
10/08/2021, 11:26 AM0xAvneesh
10/08/2021, 4:23 PMsilentworks
10/08/2021, 5:09 PMchipilov
10/08/2021, 7:05 PMzeeshanok
10/09/2021, 4:59 AMjonny
10/09/2021, 7:08 AMpr0PM
10/09/2021, 10:46 AMJimmy H.
10/09/2021, 12:15 PMHamMy
10/09/2021, 12:18 PMNine
10/09/2021, 12:58 PMBiondi Bagasta Wiko Putra
10/09/2021, 1:26 PMmessage: "new row violates row-level security policy for table \"objects\""
ā
statusCode: "42501"
service.ts :
ts
uploadImage(data: File): Observable<any> {
return defer(() => this.supabase.storage.from('bookimage').upload(`public/test.png`, data, {
cacheControl: '3600',
upsert: false
})).pipe(
map(({ error, data }) => {
if(error) {
throw(error);
}
return data;
})
)
}
Nine
10/09/2021, 4:06 PMjs
const { data, error } = await supabase
.storage
.from('storage')
.download(['test/item1', 'test/item2', 'test/item3'])
Or:
js
const { data, error } = await supabase
.storage
.from('storage')
.download('test/item1')
.download('test/item2')
.download('test/item3')
Hope I kinda got the point across šjonny
10/10/2021, 2:55 AMjonny
10/10/2021, 2:59 AMBiondi Bagasta Wiko Putra
10/10/2021, 3:08 AMOther policies under storage.objects
. Sorry i didn't see the Notes on the documentation which say i should adding policiesjonny
10/10/2021, 3:35 AMHal
10/10/2021, 10:07 AMsilentworks
10/10/2021, 12:32 PMbrikbrik
10/10/2021, 5:03 PMuser_id
to point to another user ? If yes, is that what the "WITH CHECK expression" would be for ?
postgresql
-- 1. Create table
create table profiles (
id uuid references auth.users,
avatar_url text
);
-- 2. Enable RLS
alter table profiles
enable row level security;
-- 3. Create Policy
create policy "Users can update their own profiles."
on profiles for update using (
auth.uid() = id
);
garyaustin
10/10/2021, 5:34 PMbrikbrik
10/10/2021, 5:35 PM