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!
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.
Comments
Similar requests
Creating tables related to bucket files (demo + idea)
1 vote · 0 comments
[storage-js] Skip `.from('bucket')` storage calls syntax for `createSignedUrls` function
1 vote · 0 comments
# Proposal: Virtual Storage Columns (Seamless DB-to-Storage Mapping)
1 vote · 0 comments
Add `signUploadObjectUrls()` for generating multiple signed upload URLs
1 vote · 0 comments
Allow underscores in Supabase storage bucket names (backward compatibility request)
7 votes · 0 comments
No comments yet.