Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between getSignedUrl() and getDownloadUrl()

what is the difference between get getSignedUrl() method I get on the Node.js vs getDownloadURL() on the SDKs? (I use flutter)

with getSignedUrl() I use in the cloud function, the returned url does not change when the image changes (with the same file name)

but getDownloadURL() on the client side code returns correct and varying urls when the image changes.

like image 736
Vinayakaram Nagarajan Avatar asked Mar 19 '26 07:03

Vinayakaram Nagarajan


1 Answers

They're mostly functionally equivalent, as they both provide direct download access to the underlying object.

Signed URLs have an explicit expiration that that you provide.

Signed URLs can use some forms of authentication, which you can read about in the documentation.

Signed URLs can also be used for resumable uploads.

Download URLs obtained from the web and mobile client libraries can do none of the above. But they have an access token that you can revoke in the Firebase console, which makes any URLs using that token to stop working (the token string is in the URL itself).

like image 127
Doug Stevenson Avatar answered Mar 22 '26 15:03

Doug Stevenson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!