Ionic Upload Image

I want to upload using using some api. The scenario is I have a camera service that uses the native camera and store it. And I want to upload it later, not after the capturing. And I am saving the image path to database. Then after that I have a sync function that supposedly upload the image.

sounds like a plan. What do you need help with? which problem did you encounter?

the problem that I encounter is on the sync. When I’m trying to get the image using the path, it says that the file or directory does not exists. How can I store/get the correct image path captured from the camera?