These are chat archives for angular/angular-2-ionic-2

Mar 2017
Mar 26 2017 14:20
New to ionic. I have a form that allows user to select a photo and upload to server. The form gets saved through a REST API POST method. I am not sure how to approach the photo upload. I learnt that we can use the FileTransfer method of corodova or use the base64 method. If I use base64, i can use that string in the api call itself. But If i use FileTransfer method, I think I hae to make 2 calls to the server, one for saving form, the other is to upload. Which is better ?