1
votes

I'm using ionic and I wanted my app to pick an image from my android device then upload it to my firebase storage. I have a function called getter which will trigger an image pick event. I already installed cordova image picker and added the service. enter image description here

but when I run it it says illegal constructor.

Or is there other way to convert it to a file type?

What should I do here?

1
Post actual code...not images of code. Nobody can copy anything from image to change anything. Also provide full error details. See How to Ask and question checklist - charlietfl

1 Answers

0
votes

Retrieve it by using the image URL from Storage