Ionic resolve file url