firebase-storage

Firebase storage structure example

给你一囗甜甜゛ 提交于 2020-02-24 11:15:14
问题 I understand how to upload/download images. Wondering best practice how to manage this data inside firebase console? We mostly going to upload pictures/videos and send it between users via private chat/group chat within our app. So I started to create this: should i add pictures to users e.g: /users/<userId>/images/<image-file> how would be good to share a picture on chat-group? /groups/groupId/images/<image-file> this is how our firebase structure deals with group messages /groups/<groupId>/

Firebase storage structure example

眉间皱痕 提交于 2020-02-24 11:13:29
问题 I understand how to upload/download images. Wondering best practice how to manage this data inside firebase console? We mostly going to upload pictures/videos and send it between users via private chat/group chat within our app. So I started to create this: should i add pictures to users e.g: /users/<userId>/images/<image-file> how would be good to share a picture on chat-group? /groups/groupId/images/<image-file> this is how our firebase structure deals with group messages /groups/<groupId>/

How to observe Firebase Storage Upload event

独自空忆成欢 提交于 2020-02-22 11:42:08
问题 I have an iOS app which uploads photos to Firebase Storage, and a web app which is connected to the same Firebase. Is there a way to observe changes in Storage from the web? Only the iOS device itself has access to the UploadTask when a photo is being uploaded, and I did not see an on event observer in the docs for Storage like there is for Database. 回答1: Firebase Storage doesn't provide the same "sync" functionality as the Realtime Database (imagine what it would be like trying to sync 1GB

How to observe Firebase Storage Upload event

你。 提交于 2020-02-22 11:37:40
问题 I have an iOS app which uploads photos to Firebase Storage, and a web app which is connected to the same Firebase. Is there a way to observe changes in Storage from the web? Only the iOS device itself has access to the UploadTask when a photo is being uploaded, and I did not see an on event observer in the docs for Storage like there is for Database. 回答1: Firebase Storage doesn't provide the same "sync" functionality as the Realtime Database (imagine what it would be like trying to sync 1GB

How to observe Firebase Storage Upload event

核能气质少年 提交于 2020-02-22 11:36:05
问题 I have an iOS app which uploads photos to Firebase Storage, and a web app which is connected to the same Firebase. Is there a way to observe changes in Storage from the web? Only the iOS device itself has access to the UploadTask when a photo is being uploaded, and I did not see an on event observer in the docs for Storage like there is for Database. 回答1: Firebase Storage doesn't provide the same "sync" functionality as the Realtime Database (imagine what it would be like trying to sync 1GB

Firebase storage get Download URL after image upload successfully to firebase storage

爱⌒轻易说出口 提交于 2020-02-16 12:20:03
问题 This is the entire code to upload a image and get the download url The image are uploaded successfully but the download url is not printed <html> <head> <title> firebase save</title> <style media="screen"> body{ display : flex; min-height: 100vh; width : 100%; padding : 0; margin:0; align-items: center; justify-content: center; flex-direction: column; } #uploader{ -webkit-appearance: none; appearance: none; width: 50%; margin-bottom: 10px; } </style> </head> <body> <progress value="0" max =

Firebase storage get Download URL after image upload successfully to firebase storage

ⅰ亾dé卋堺 提交于 2020-02-16 12:19:10
问题 This is the entire code to upload a image and get the download url The image are uploaded successfully but the download url is not printed <html> <head> <title> firebase save</title> <style media="screen"> body{ display : flex; min-height: 100vh; width : 100%; padding : 0; margin:0; align-items: center; justify-content: center; flex-direction: column; } #uploader{ -webkit-appearance: none; appearance: none; width: 50%; margin-bottom: 10px; } </style> </head> <body> <progress value="0" max =

Firebase storage get Download URL after image upload successfully to firebase storage

非 Y 不嫁゛ 提交于 2020-02-16 12:18:36
问题 This is the entire code to upload a image and get the download url The image are uploaded successfully but the download url is not printed <html> <head> <title> firebase save</title> <style media="screen"> body{ display : flex; min-height: 100vh; width : 100%; padding : 0; margin:0; align-items: center; justify-content: center; flex-direction: column; } #uploader{ -webkit-appearance: none; appearance: none; width: 50%; margin-bottom: 10px; } </style> </head> <body> <progress value="0" max =

what code should i add in this code to get the download URL of uploaded file

假装没事ソ 提交于 2020-02-16 10:41:30
问题 The code worked perfectly the code uploads the file in the firebase storage since to retrieve the uploaded file i want to get the download url for the uploaded file i would also like to specify to upload only certain formats in storage like jpeg png pdf etc.. <html> <head> <title> firebase save</title> <style media="screen"> body{ display : flex; min-height: 100vh; width : 100%; padding : 0; margin:0; align-items: center; justify-content: center; flex-direction: column; } #uploader{ -webkit

What is the purpose behind getDownloadURL of Firebase Storage

笑着哭i 提交于 2020-02-15 09:16:53
问题 Per these docs, I understand once we have the firebase path in storage, we can get the download url by calling getDownloadUrl() on this path's ref . My question is all the docs suggest to get the download url first then download file data based on these image, but can we persist this download url in our realtime db for the file, so we don't have to call getDownloadUrl() each time? Current file upload and download workflow -> Upload: 1. upload file to storage in specific path. 2. store path in