I am trying to change my app from mobile to web. On the phone, everything works well with no problems. Now, my app has a page where you upload an image to firebase storage and when I seem to upload the image, I get an exception in the console and the image is not being uploaded anymore. The error I get is this: Unsupported operation: Platform._operatingSystem
I tired searching for it but nothing worked out. Do you have any ideas / tips to solve this issue?
Here is the code I am trying to run:
Reference firebaseStorageRef = FirebaseStorage
.instance
.ref()
.child('uploads/$fileName');
UploadTask uploadTask = firebaseStorageRef.putFile(_imageFile);