I am trying to upload an image to Firebase Storage in Flutter, using the following code.
StorageReference reference =
FirebaseStorage.instance.ref().child("$fileId.jpg");
StorageUploadTask uploadTask = reference.putFile(_imageFile);
This does seem to work. But I need to find a way, to await this upload process. How can I go about it, given that reference.putFile(file)
doesn't return a future ?