Quickstart: Sypnia Cloud
Create a bucket, write a rule, upload a file from your app and show a resized image.
At the end, your app uploads a profile photo for the signed-in user and shows it at 256 px.
Allow each user to write their own folder
SQL create policy "own avatar" on sypnia_files.objects for insert to authenticated with check (bucket_id = 'avatars' and (sypnia_files.foldername(name))[1] = auth.uid()::text);Run it in the SQL editor of the console, or with
npx @sypnia/files policies apply policies.sql.