Open falstack opened 1 year ago
Hmm, I think this is a bit out of scope for the client library. You can try fetching the image and storing them with from().upload()
, e.g.
const res = await fetch("https://example.com/avatar.png")
const { data, error } = await supabase.from('bucket').upload('file/path.png', await res.blob())
cc @fenos
@soedirgo local fetch very slowly and dangerous for io, this service should work on cloud, like: https://github.com/qiniu/qshell/blob/master/docs/fetch.md
@soedirgo @fenos
Feature request
When I use OAuth to get users' avatars on social platforms, I need to store them in my storeage, otherwise I can't access them (next/image restrictions or users change new avatars)
Describe the solution you'd like
Describe alternatives you've considered
Use Nodejs to download remote files to local, and then upload them using supabase
Additional context