storage-js icon indicating copy to clipboard operation
storage-js copied to clipboard

restore a file from outside to supabase

Open falstack opened this issue 1 year ago • 0 comments

Feature request

Is your feature request related to a problem? Please describe.

I need restore user avatar from twitter/youtube etc.

Describe the solution you'd like

await supabase.storage.from('https://twitter-img/avatar.png').to('bucket-name', 'file-path')

Describe alternatives you've considered

  1. download at user server side and upload
  2. download at supabase server side and upload

Additional context

  1. nextjs need add allowDomain for image
  2. twitter will delete old user avatar

falstack avatar Nov 26 '22 12:11 falstack