There is a difference, first we need to understand what you are working with, but following.
You might as well have one <input type="file">
to upload the photo, but I recommend using Plugin
of Camera.
You can use the Filetransfer to upload the image to the server.
Accessing the Galeria
navigator.camera.getPicture(uploadPhoto, function(message) {
alert('Erro ao enviar');
}, {
quality: 100,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
});
Upload to the server.
var ft = new FileTransfer();
ft.upload(imageURI, "SUA URL", function(result){
console.log(JSON.stringify(result));
}, function(error){
console.log(JSON.stringify(error));
}, options);
Hello friend you are using IONIC 2?
– Djalma Bento