Upload image to POST rest api


#1

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?


#2

For images, easier just posting a base64 string of the image and putting it back into a file on the server


#3

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?


#4

I did an example a while backā€¦

The cordova camera plugin outputs to base64.