Is it possible to get all file names / links in ArrayList from Firebase Storage, knowing the path, but not knowing the file name and their number? If possible, how?
1 answer
At the time of the answer - in the Cloud Storage API it is not possible to get a list of files from any folder. This is due to the initial security restrictions. The fastest way in my opinion is to store links to files anywhere, and already make requests for them, for example in the database
String photoPath = db.getPhotoPath(); StorageReference storageRef = firebaseStorage.getReference(); StorageReference photoRef = storageRef.child(photoPath); photoRef.getBytes... It is very strange that for this kind of API there is not yet such an opportunity, there are several other workflows to get the necessary links, for example, call it with a common tag, or put the file in the root (JSON) and already support it, and so on. We hope that will appear.
|