I am trying to capture the image from camera and directly uploading to the Firebase Storage. While doing so I am using upload task. My code is as follows.
UploadTask uploadTask = FirebaseStorage.instance.ref().child("Suresh.jpg").putFile(picutreFile);
var imageUrl = await (await uploadTask).ref.getDownloadURL();
String url = imageUrl.toString();
print(url);
There is no error and the code flow is also fine. But this is not uploading the file to the firebase storage.
This should upload the image file to the firebase Storage
New contributor
Sureshkumar R is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1