/firebaseStorageApp

Source Code From YouTube Video on IonicFramework and Firebase Storage

Primary LanguageJavaScript

firebaseStorageApp

Source Code From YouTube Video on IonicFramework and Firebase Storage

Ionic Framework 1 - Firebase Storage File Upload Video Part One

Ionic Framework 1 - Firebase Storage File Upload Video Part Two

Alt text

Demonstrating file upload to Firebase with the Image Picker Plugin, Cordova File Plugin and ngCordova

Android Specific Changes


The plugin does not properly specify the permissions for android so the picker might not get the images, see this PR. I just installed the alternate plugin from this location - https://github.com/poocart/cordova-imagePicker

Instead of getting the path from the URI, in the code, I assume the following...

  // modify the image path when on Android
  if ($ionicPlatform.is("android")) {
    path = cordova.file.cacheDirectory
  } else {
    path = cordova.file.tempDirectory
  }

feel free to parse the path to get the directory

Firebase Data Structure

Realtime Database

https://raw.githubusercontent.com/aaronksaunders/firebaseStorageApp/master/Screenshot%202016-08-16%2016.12.04.png

Storage Database

https://github.com/aaronksaunders/firebaseStorageApp/blob/master/Screenshot%202016-08-16%2016.12.27.png