Closed
Description
[REQUIRED] Describe your environment
- Operating System version: [all]
- Firebase SDK version: 4.1.3
- Firebase Product: storage
[REQUIRED] Describe the problem
Currently, the only way to get an image is to call getDownloadUrl
. The download URL is unguessable but not affected by security rules, which means that once someone has the download URL, they could theoretically use a bot to create a huge number of downloads and run up a big Cloud Storage bill or hit the project quota.
The Android SDK provides getFile
, which downloads the file directly to the device. Each download involves a security rules check (source).
Request
Provide a function like getFile
that checks security rules every time.
Alternatively, perhaps a function that returns a signed URL (for example, getSignedUrl(expireTime)
) could accomplish a similar goal.