Created
July 1, 2022 02:14
-
-
Save marchbold/2b8f9130c713743340cada8287dc322c to your computer and use it in GitHub Desktop.
Listing storage references in a Firebase storage bucket using distriqt's Firebase extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ref:StorageReference = FirebaseStorage.service.getReference(); | |
ref.addEventListener( StorageReferenceListEvent.SUCCESS, listSuccessHandler ); | |
ref.listAll(); | |
function listSuccessHandler( event:StorageReferenceListEvent ):void | |
{ | |
// Contains a list of "items" - each represents a storage item | |
for each (var item:String in event.items) | |
{ | |
var ref:StorageReference | |
= FirebaseStorage.service.getReference( item ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment