← Firebase learning pathFirebase · Module 6 of 10
Cloud Storage
Upload and serve images, videos and files.
📖 Key ideas
- Cloud Storage for Firebase stores user files in buckets.
- uploadBytes(ref(storage, "avatars/uid.jpg"), file).
- getDownloadURL returns a link to show the file.
- Storage Rules restrict who can upload/read and file size/type.
- Resize images with the Resize Images extension or functions.
💡 Real-life example: Cloud Storage is a locker room: each file in its own locker, rules decide who gets the key.
BucketContainer for stored files
ReferencePointer to a file path
getDownloadURLGets a shareable URL
Storage RulesAccess rules for files