Questions tagged [firebase-storage]

Cloud Storage for Firebase (previously called Firebase Storage) gives developers robust, secure uploads and downloads from Firebase SDKs by handling network interrupts and providing an intuitive authorization model. Firebase Storage is backed by Google Cloud Storage, which allows you to scale from prototype to production.

About Cloud Storage for Firebase

Cloud Storage for Firebase is a component of the Firebase suite of tools for cross-platform application development. From May 2016 until March 2017 it was known as Firebase Storage.

Cloud Storage for Firebase supports:

  • Robust uploads and downloads in the background, regardless of network quality
  • Secure client-side authorization, integrated with Firebase Authentication
  • Petabyte scale data storage backed by Google Cloud Storage
  • API access throughout Firebase or Google Cloud Storage APIs

Related tags

7078 questions
294
votes
6 answers

Firebase Storage How to store and Retrieve images

How to store and view images on firebase?
dogger
  • 2,965
  • 2
  • 14
  • 6
197
votes
27 answers

Get Download URL from file uploaded with Cloud Functions for Firebase

After uploading a file in Firebase Storage with Functions for Firebase, I'd like to get the download url of the file. I have this : ... return bucket .upload(fromFilePath, {destination: toFilePath}) .then((err, file) => { // Get…
Valentin
  • 5,379
  • 7
  • 36
  • 50
187
votes
5 answers

Firebase Storage and Access-Control-Allow-Origin

I'm trying to download files from Firebase Storage through a XMLHttpRequest, but Access-Control-Allow-Origin is not set on the resource, so it's not possible. Is there any way to set this header on the storage server? (let [xhr…
Blacksad
  • 14,906
  • 15
  • 70
  • 81
130
votes
11 answers

Firebase storage artifacts

I' trying to understand what eu.artifacts.%PROJECT NAME%.appspot.com is. It's currently taking up 800mb of storage from my daily 5gb limit. It contains only application/octet-stream type of files. This bucket was created automatically and the file…
glaze
  • 1,309
  • 2
  • 6
  • 6
129
votes
20 answers

How to get a list of all files in Cloud Storage in a Firebase app?

I'm working on uploading images, everything works great, but I have 100 pictures and I would like to show all of them in my View, as I get the complete list of the images in a folder, I can not find any API for this work.
Luis Ruiz Figueroa
  • 2,537
  • 3
  • 18
  • 23
88
votes
9 answers

Firebase Storage Video Streaming

I'm working on an app that has video streaming functionality. I'm using firebase database and firebase storage. I'm trying to find some documentation on how firebase storage handles video files, but can't really find much. There's mentioning in the…
80
votes
17 answers

TypeError: firebase.storage is not a function

Following this example, I keep getting the error: TypeError: firebase.storage is not a function From this line in my code: var storageRef = firebase.storage().ref(); (And when I simply try to initialize storage from the storage guide, linked from…
NonCreature0714
  • 5,744
  • 10
  • 30
  • 52
69
votes
14 answers

User does not have permission to access this object . Firebase storage android

I am new to firebase storage. Just so I could learn it, I made a simple app that has a button and an ImageView. When I click on the button, an image (from drawable) gets displayed on the ImageView. I have also written the code for uploading the…
ashay
  • 1,115
  • 2
  • 9
  • 11
52
votes
7 answers

Upload files to Firebase Storage using Node.js

I'm trying to understand how to upload files in Firebase Storage, using Node.js. My first try was to use the Firebase library: "use strict"; var firebase = require('firebase'); var config = { apiKey: "AIz...kBY", authDomain:…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
52
votes
5 answers

how to check if file exists in Firebase Storage?

When using the database you can do snapshot.exists() to check if certain data exists. According to the docs there isn't a similar method with storage. https://firebase.google.com/docs/reference/js/firebase.storage.Reference What is the proper way of…
Pier
  • 10,298
  • 17
  • 67
  • 113
51
votes
5 answers

How to get a File() or Blob() from an URL in javascript?

I try to upload an image to the Firebase storage from an URL (with ref().put(file))(www.example.com/img.jpg). To do so i need a File or Blob, but whenever I try new File(url) it says "not enough arguments“… EDIT: And I actually want to upload a…
Sam
  • 819
  • 2
  • 7
  • 17
51
votes
5 answers

Store files with unique/random names

With the new Firebase API you can upload files into cloud storage from client code. The examples assume the file name is known or static during upload: // Create a root reference var storageRef = firebase.storage().ref(); // Create a reference…
Travis Christian
  • 2,412
  • 2
  • 24
  • 41
50
votes
4 answers

Android - Firebase - TaskSnapshot - Method should only be accessed within private scope?

Everything was working great... until I came back to work from a 3 month break and updated my Firebase from 9.8 to 10.0.1 Now all of my calls to TaskSnapshot are giving me an error. Here is the example code that worked fine…
Ryan
  • 1,988
  • 4
  • 21
  • 34
48
votes
5 answers

how do I check the file size of a video in flutter before uploading

I want to upload a video file to my cloud storage but I want to check the size of the video file before I upload. how to achieve this
Norbert
  • 6,874
  • 14
  • 40
  • 65
47
votes
12 answers

Flutter & Firebase: Compression before upload image

I want to send photo selected by user in my app to Firebase Storage. I have a simple class with property _imageFile which is set like this: File _imageFile; _getImage() async { var fileName = await ImagePicker.pickImage(); setState(() { …
Kamil Harasimowicz
  • 4,684
  • 5
  • 32
  • 58
1
2 3
99 100