0
I am developing an application and this application gets some media files(videos, photos and audios) for this I am using the plugin media capture, however when the user takes a photo for example it generates a random name, something like this 145938172015.jpg
, I’d like someone to appear in place like this imagem01.jpg
. Below is my code that I use to capture the image.
foto: function () {
navigator.device.capture.captureImage(app.captureFotoSuccess, app.captureFotoError, { limit: 1 });
},
captureFotoSuccess: function (mediaFiles) {
var i = 0;
document.getElementById('ArquivosAnexados').value = document.getElementById('ArquivosAnexados').value + mediaFiles[i].fullPath + '; ';
},
captureFotoError: function (error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
},