Cordova.file undefined


I’m having some troubles getting the cordova-plugin-file plug-in working. It is saying Undefined. I am able to get it working if I used version 4.3.3, but I don’t really want to use this version, and with this version I am unable to get cordova-plugin-file-transfer to work.

Does anyone know why the latest version is not working for me, or if there is something I’m doing wrong?