FeatureFuel
6

Storage: Upload to Bucket from Url

Source: supabase/supabase#22590 · opened by @psteinroe
Hey,

we have a lot of cased in our backend where we need to transfer a file from an external api to our storage. In almost all cases, the file is provided via an url. We download it from the endpoint in memory, and upload it to supabase again. It would be nice if the storage api could expose an endpoint that allows uploading a file by passing an url:

1. User passes url
supabase.storage.from('bucket').upload(filePath, '

2. Storage Api makes HEAD request to get metadata of file
Check file size and content type returned by HEAD request against bucket config and throw if invalid

3. Storage Api downloads file from url directly to bucket at given filePath

Thanks!

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests