0

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);

And here is the full exception: enter image description here

Dharmaraj
  • 47,845
  • 8
  • 52
  • 84
Andrei Marin
  • 616
  • 1
  • 6
  • 16
  • Does this help? https://stackoverflow.com/questions/59716944/flutter-web-upload-image-file-to-firebase-storage – casraf Oct 30 '22 at 16:07

0 Answers0