I would like to upload an image via a POST request to my rest API. Can someone point me in the right direction of how to do this with ionic and what to pass in my post request?
For images, easier just posting a base64 string of the image and putting it back into a file on the server
Cool makes sense. How do I get the base64 of it? Like which plugin? Does the camera/gallery selector plugin give me a base 64? Or do I need to use the FileTransfer plugin?
I did an example a while back…
The cordova camera plugin outputs to base64.