Firebase Storage - Download Url Different From Actual Download Url In The Console (token Differs)
Most of the time I get the download URL of the file uploaded correct after successfully uploading the file and able to retrieve the file back, but few times the token of the downlo
Solution 1:
Download URLs are invalidated in two ways:
- The download URL is deleted in the Firebase Console
- A new object is uploaded (which effectively deletes the object, and thus the token should expire)
It sounds like you might be hitting the second case--if so, this is intended behavior (since you're retrieving a different file), so you should make sure to take the URL you retrieved after upload (we return it in the metadata after upload) and store it appropriately. Glide is likely caching the old URL which is why it's failing (you'll need to invalidate the cache if the file changes).
Post a Comment for "Firebase Storage - Download Url Different From Actual Download Url In The Console (token Differs)"