- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 407
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
supabase.fetch('https://useravatar.png').to({
bucket: 'my-bucket',
path: 'filepath'
})
Describe alternatives you've considered
Use Nodejs to download remote files to local, and then upload them using supabase
Additional context
- supabase can provide syntax encapsulation to download remote files to local
- When calling the remote download, supabase does not need to download the remote file to the local, but calls the cloud function of supabase to push the file to the user's bucket
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
soedirgo commentedon Nov 30, 2022
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.cc @fenos
falstack commentedon Dec 3, 2022
@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
falstack commentedon Dec 10, 2022
@soedirgo @fenos