Firebase Storage & Directus Files: preserving folder structure & showing existing files?

My project stack is Firebase / Flutter, including using Firebase Storage to store several image assets. I integrated directus recently and would like to see these existing images in directus admin UI, ideally in the same folder structure I have setup in firebase storage. Is this possible? Do I need to “import” those files into directus before they show up? And if I do that can I preserve the folder structure?

In an ideal world, I’d see all existing images in directus as they are organized in firebase storage, AND, when I upload new images the directus folder path would carry over to firebase storage… Is this possible?

I appreciate your help!

Hey there! :waving_hand:

Directus doesn’t have built-in support for Firebase Storage, but we do have support for storing assets in Google Cloud Storage.

For your use case, you’d probably need to:

  1. Pull those files into Directus from Firebase Storage
  2. Recreate the folder structure*manually if you want to preserve it

Alternative Approaches

  • You could write a custom script to migrate files from Firebase Storage to your Directus instance
  • Maybe using the Google Cloud Storage adapter (and please don’t hold me to this - isn’t Firebase Storage build on Google Cloud Storage?)

Preserving folder structure would need to be handled during the migration process since Directus organizes files differently than Firebase Storage.

Hope that helps! And welcome to the community :waving_hand: