firebase-storage

How do I get files synchronized from Firebase in Android?

回眸只為那壹抹淺笑 提交于 2021-02-11 14:43:04
问题 I am trying to make an application that works with audio files. I have to import and merge audio files from Firebase in a part of the application. Here is the code block from merge operations; protected void combine() { String randomFileName = String.valueOf(System.currentTimeMillis()); lastRecordedFilePath = Environment.getExternalStorageDirectory() + "/MueasycoCombinedAudios/" + randomFileName + ".wav"; lastRecordedFileName = randomFileName + ".wav"; File folder = new File(Environment

How to list files and folders in Firebase Storage

£可爱£侵袭症+ 提交于 2021-02-11 14:42:14
问题 I am working on a school project and have elected to use Firebase as a storage option for uploading/downloading files via an app that I am developing. I would like to be able to display to the user a list of all the files within a specific folder, and also give that user the ability to upload files. However, it seems that the only way to access information within the firebase storage, is to, as the developer, know what the file is rather than find files and display them dynamically. I hope I

Firebase Security Rules for domain specific [duplicate]

女生的网名这么多〃 提交于 2021-02-11 14:36:51
问题 This question already has answers here : Firebase Security Rules Storage from specific web url (2 answers) Closed 5 months ago . I am building the application which uses the Fiberbase Storage, I do not want the user to log in or signup, just allow them to upload files through my website only. I don't want others to copy the Firebase config key and use in their website to upload a file on my firebase account, so I want to set up some rules which will restrict access over the certain domain 回答1

Firebase Security Rules for domain specific [duplicate]

泄露秘密 提交于 2021-02-11 14:35:30
问题 This question already has answers here : Firebase Security Rules Storage from specific web url (2 answers) Closed 5 months ago . I am building the application which uses the Fiberbase Storage, I do not want the user to log in or signup, just allow them to upload files through my website only. I don't want others to copy the Firebase config key and use in their website to upload a file on my firebase account, so I want to set up some rules which will restrict access over the certain domain 回答1

iOS app crashes when calling this function 2 times in a row (Firebase Storage, Flutter)

[亡魂溺海] 提交于 2021-02-11 12:51:47
问题 My app crashes when calling "_submit" function 2 times in a row. I can pick the picture from gallery and upload it to Firebase Storage but if I call it again the the whole app crashes. From this button : floatingActionButton: FloatingActionButton( onPressed: () => _submit(), Submit calls a Provider of type Database : Future<void> _submit() async { widget.database = Provider.of<Database>(context, listen: false); await widget.database .setPicture("regione/citta/comune/lavoro/IDArtista/profilo

iOS app crashes when calling this function 2 times in a row (Firebase Storage, Flutter)

◇◆丶佛笑我妖孽 提交于 2021-02-11 12:50:56
问题 My app crashes when calling "_submit" function 2 times in a row. I can pick the picture from gallery and upload it to Firebase Storage but if I call it again the the whole app crashes. From this button : floatingActionButton: FloatingActionButton( onPressed: () => _submit(), Submit calls a Provider of type Database : Future<void> _submit() async { widget.database = Provider.of<Database>(context, listen: false); await widget.database .setPicture("regione/citta/comune/lavoro/IDArtista/profilo

Image not saving with name in Firebase

老子叫甜甜 提交于 2021-02-10 20:14:00
问题 var dbs=firebase.database(); var stg=firebase.storage(); var inp=document.getElementById("filess"); inp.onchange=lasted; function lasted() { var fname=this.files[0]; var btns=stg.ref("Gis/"+ fname); btns.put(fname); } <input type="file" name="fileid" id="filess" multiple> While I Upload the image and save it to the Firebase Storage. It is saving as [object Type] . How can I store it using the file name? 回答1: The files property of an input is a FileList where each element is a File object. To

Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully?

孤者浪人 提交于 2021-02-10 20:09:07
问题 Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully? I am trying to find a way to see if the picture was upload successful so that I can start and stop my LoadingScreen() . final StorageReference firebaseStorageRef = FirebaseStorage.instance .ref() .child('$path/${userID}_${timeStamp}_${number}_${tag}.jpg'); final StorageUploadTask uploadTask = firebaseStorageRef.putFile(image); I am looking forward to hearing from all of you. Thank you in advance! 回答1

Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully?

拈花ヽ惹草 提交于 2021-02-10 20:04:27
问题 Flutter & Firebase : How to check if my picture is uploaded to Firebase Storage Successfully? I am trying to find a way to see if the picture was upload successful so that I can start and stop my LoadingScreen() . final StorageReference firebaseStorageRef = FirebaseStorage.instance .ref() .child('$path/${userID}_${timeStamp}_${number}_${tag}.jpg'); final StorageUploadTask uploadTask = firebaseStorageRef.putFile(image); I am looking forward to hearing from all of you. Thank you in advance! 回答1

Firebase Storage: Play back of a video url directly?

可紊 提交于 2021-02-10 06:28:06
问题 I have been searching a lot about this by now and I got nothing: I am trying to play a video from firebase storage and trying to be able to see its progress on the player as it loads and to be able to seek it backward and forward (stuff that any player does while streaming a video). The problem: Firebase team say that it is not possible to stream a video from the cloud storage (it is not supported). Eventhough I was able to do this: String url = "my_url_at_firebase_storage"; video_View