Get Started on Web

Firebase Storage lets you upload and share user generated content, such as images and video, which allows you to build rich media content into your apps. Firebase Storage stores this data in a Google Cloud Storage bucket, a petabyte scale object storage solution with high availability and global redundancy. Firebase Storage lets you securely upload these files directly from mobile devices and web browsers, handling spotty networks with ease.

Prerequisites

  1. Add and configure the Firebase SDK into your app.

Set up Firebase Storage

You must add your bucket to your Firebase SDK configuration.

You'll need your Storage Bucket URL from the Firebase console Storage page, under the FILES tab, in the header of the file viewer. Then add the storageBucket attribute to your config Object:

  // Set the configuration for your app
  // TODO: Replace with your project's config object
  var config = {
    apiKey: '<your-api-key>',
    authDomain: '<your-auth-domain>',
    databaseURL: '<your-database-url>',
    storageBucket: '<your-storage-bucket>'
  };
  firebase.initializeApp(config);

  // Get a reference to the storage service, which is used to create references in your storage bucket
  var storage = firebase.storage();

You're ready to start using Firebase Storage! First, let's learn how to create a Firebase Storage reference.

Send feedback about...

Need help? Visit our support page.