Best way to upload a picture for ionic application

Hi All, i’m trying to upload a picture using ionic framework where in my application runs on mobile web browser and as a individual application on android and ios. Currently i’m using lr.upload where in i had faced cross origin issues and now it is not working at all.