How to get the uid of the authenticated Firebase user in a Cloud Functions storage trigger
问题 Background: I'm using Firebase Cloud Functions, the new Firestore Database, and storage bucket with an Android client. What I want to accomplish: When a user uploads a picture to a storage bucket, I want to use cloud functions to get the file path/link to the image location in the storage bucket and store this string as a new document under a new collection called "pictures" under the currently logged in user's document in Firestore. That way, I can see the images each user has uploaded