How to setup file upload in ionic framework using yii2 api?

I am trying to use the ngCordova FileUpload however I cant seem to find a way to pass the file path from the file input into the file upload function, I have seen examples on fixed URLs but no using File Input, can anyone point me in the right direction?