Uploading Data_URL images using File Transfer Plugin

I Just followed Simon Grimm tutorial for uploading images to server, but instead of using mongodb I used mysql. The Backend is functional, i checked it using postman. On the front-end that is ionic, everything is working except the uploading part. After a long analysis, i have figured out that there is a problem in the imagePath. Since he was using the destination type as FILE_URI and i am using DATA_URL.