URL acquisition after file upload #18127
Unanswered
sdr0x07b6
asked this question in
Feature Requests
Replies: 1 comment 2 replies
|
getPublicUrl does NOT do a server call or anything on the net. It is simply a string concatenation function. So the value of not using it and get a url back is minimal as far as performance. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.All reactions