firebase-storage

Firebase Storage Overwriting Files

此生再无相见时 提交于 2020-12-26 07:47:25
问题 I have small bug in my program. I have firebase Storage in my app. I wanna let the user to upload image to the storage. the thing is when the user uploads image and then tries to upload another image. what the program does it overwrites the image was uploaded before. what I want is to avoid "overwrite" when the user wants to upload another image. and keep both images in different file let currentUser = Auth.auth().currentUser let StorageRefrenece = Storage.storage().reference() let

Uploading files to user specific directories in firebase storage for android?

爷,独闯天下 提交于 2020-12-23 12:45:48
问题 I am trying to upload a file using firebase storage in Android. But i am receiving the following exception: E/StorageException: StorageException has occurred. User does not have permission to access this object. Code: -13021 HttpResult: 403 E/StorageException: The server has terminated the upload session java.io.IOException: The server has terminated the upload session at com.google.firebase.storage.UploadTask.zzs(Unknown Source) at com.google.firebase.storage.UploadTask.zzr(Unknown Source)

Uploading files to user specific directories in firebase storage for android?

时间秒杀一切 提交于 2020-12-23 12:44:10
问题 I am trying to upload a file using firebase storage in Android. But i am receiving the following exception: E/StorageException: StorageException has occurred. User does not have permission to access this object. Code: -13021 HttpResult: 403 E/StorageException: The server has terminated the upload session java.io.IOException: The server has terminated the upload session at com.google.firebase.storage.UploadTask.zzs(Unknown Source) at com.google.firebase.storage.UploadTask.zzr(Unknown Source)

will Cloud Function affect Firebase Storage bandwidth usage?

独自空忆成欢 提交于 2020-12-19 01:45:00
问题 I am trying to figure out why firebase storage usage is far above my expectation I only have few photo files in my Firebase storage, just around 75 photos, 100kb for each photo. but my bytes stored and object counts is way above my expectation as you can see in the image above. in this case, maybe I find the answer from the documentation in here When you deploy your function's source code to Cloud Functions, that source is stored in a Cloud Storage bucket. Cloud Build then automatically

will Cloud Function affect Firebase Storage bandwidth usage?

我与影子孤独终老i 提交于 2020-12-19 01:39:20
问题 I am trying to figure out why firebase storage usage is far above my expectation I only have few photo files in my Firebase storage, just around 75 photos, 100kb for each photo. but my bytes stored and object counts is way above my expectation as you can see in the image above. in this case, maybe I find the answer from the documentation in here When you deploy your function's source code to Cloud Functions, that source is stored in a Cloud Storage bucket. Cloud Build then automatically

How to read local file in ios devices by using XmlHttpRequest in expo?

早过忘川 提交于 2020-12-15 07:04:08
问题 I've been dealing with this problem for 3 days. Here is the thing, in iOS I cannot read file by using XmlHttpRequest . My code is from expo's firebase-storage-upload-example (link). I've added this code to my app.json: { "expo": { ...somestuf "ios": { "infoPlist": { "NSFaceIDUsageDescription": "This app uses the camera to scan barcodes on event tickets.", "NSAppTransportSecurity": { "NSAllowsArbitraryLoads": true } } } } In android everything works fine. In iOS I think it's a permission kinda

Change storageBucket ref after initialization

≯℡__Kan透↙ 提交于 2020-12-15 05:32:26
问题 I am trying to build a storage manager app for Firebase Storage in React. The app should be able to list/add/delete buckets and files inside them. I have my initializeApp set up as follows import firebase from 'firebase'; import 'firebase/auth'; import 'firebase/storage'; firebase.initializeApp({ apiKey: 'xxxxxxxxxxxxxxxxxxxx', authDomain: 'buckettest-xxxxx.firebaseapp.com', projectId: 'buckettest-xxxxx', storageBucket: 'buckettest-xxxxx.appspot.com', messagingSenderId: 'xxxxxxxxxxxxxxxxxxxx'

How to download image into local storage?

时光毁灭记忆、已成空白 提交于 2020-12-15 04:57:09
问题 I am use Node.js Firebase Cloud Function but need get image I have store in Firebase Storage so I can send to Google Cloud vision API. Vision API require send from local image file: // const fileName = 'Local image file, e.g. /path/to/image.png'; // Performs safe search detection on the local file const [result] = await client.safeSearchDetection(fileName); const detections = result.safeSearchAnnotation; How to download remote image into local storage? For example I want store this image in

How to download image into local storage?

只愿长相守 提交于 2020-12-15 04:55:00
问题 I am use Node.js Firebase Cloud Function but need get image I have store in Firebase Storage so I can send to Google Cloud vision API. Vision API require send from local image file: // const fileName = 'Local image file, e.g. /path/to/image.png'; // Performs safe search detection on the local file const [result] = await client.safeSearchDetection(fileName); const detections = result.safeSearchAnnotation; How to download remote image into local storage? For example I want store this image in

Firebase Firestorage Upload Process Jump from 0 to 100

此生再无相见时 提交于 2020-12-15 04:32:31
问题 I am implementing a file upload using Angular and Firebase. When I am uploading an image I want to show a smooth transition from 0 to 100. But right now I am using firebase's builtin function and when the process starts it is showing 0 then suddenly jumping to 100. var uploadTask = storageRef.child('images/rivers.jpg').put(file); uploadTask.on('state_changed', function(snapshot){ // Observe state change events such as progress, pause, and resume // Get task progress, including the number of