title: Is there a way to upload an image to Firebase Storage based on Firestore values?
body: <p>I thought this would be simple with Firebase but I have not found a solution to this yet:</p>
  
  <p>I have an Admins collection in my Firestore database and basically want to limit my Images folder in Firebase storage so only Admins can add new images. 
  The security rules do not allow me to do an "if userID is in database then allow create".</p>
  
  <p>Does anyone know how to achieve this functionality? From looking at other questions it looks like a Function may be able to do this however I could not find a working solution on how to upload an image using a function let alone limit it based on database data. </p>