How to get the file after using photo library

You can use the Camera plugin to get photos from your library

See my post in this topic: Camera plugin is working or not
Should help you in the right direction