1
Avatar upload block for the UI Library
Source: supabase/supabase#49174 · opened by @mmaxence
The library already has current-user-avatar for displaying a user's avatar and dropzone for uploads, but there's no block that ties them together into the common "let a user set their own avatar" flow: pick or drop an image, preview it, upload to a Storage bucket, and update the user's metadata so the new avatar shows everywhere. It would compose the two existing blocks rather than introduce anything new conceptually: dropzone for the file input, a preview with sensible loading and error states, an upload to a configurable bucket, and a metadata update. It fills a gap between "display an avatar" and "upload a file" that most apps end up hand-rolling. I'd be glad to implement it, starting with Next.js and React to mirror the existing block structure, and follow up with the other frameworks if it's useful. Before writing code I wanted to check whether this fits the direction you have in mind for the library, and whether there'…
No pledges yet. Be the first to back this.
Comments
Similar requests
Retrieve list of users by ID
1 vote · 0 comments
Display avatar when providing a supabase storage file url in avatar_url
2 votes · 0 comments
Add `signUploadObjectUrls()` for generating multiple signed upload URLs
1 vote · 0 comments
Client Libraries
16 votes · 0 comments
Feature Request: Port storage functions to plpgsql
1 vote · 0 comments
No comments yet.