3
URL acquisition after file upload
Source: supabase/supabase#18127 · opened by @sdr0x07b6
We request a specification that returns a URL as the return value of the upload() method.
In many cases, we would like to know the URL when the upload to storage is completed, so we feel that it is an unnatural specification not to have it as the return value of the upload() method. Is this specification intentionally made in this way?
We need to use the getPublicUrl() method to get the URL after the upload is complete, but it is tedious each time, requires two requests each time and takes time.
The path is returned from the upload() method, but the path is what you specify yourself when uploading and you don't need it to be returned. What you want is the URL.
In many cases, we would like to know the URL when the upload to storage is completed, so we feel that it is an unnatural specification not to have it as the return value of the upload() method. Is this specification intentionally made in this way?
We need to use the getPublicUrl() method to get the URL after the upload is complete, but it is tedious each time, requires two requests each time and takes time.
The path is returned from the upload() method, but the path is what you specify yourself when uploading and you don't need it to be returned. What you want is the URL.
No pledges yet. Be the first to back this.
Comments
Similar requests
Add `signUploadObjectUrls()` for generating multiple signed upload URLs
1 vote · 0 comments
Storage: Upload to Bucket from Url
6 votes · 0 comments
Signed upload URL for existing files in blob storage
3 votes · 0 comments
Configurable Expiration Time for Presigned Upload Url
4 votes · 0 comments
Ephemeral branches need a stable OAuth callback URL
2 votes · 0 comments
No comments yet.