0
Personal I am with the following problem in my code it fails to enter the function to get the file size, I am using Phonegap for development, follow the code below
function onSuccess(imageData) {
window.resolveLocalFileSystemURL(imageData, function (fileEntry) {
fileEntry.file(function (file) {
if (file.size > 2097152) {
alert("não pode ser maior que 2mb");
} else {
//aqui vai o codigo para mostrar a imagem
}
}, function (evt) {
});
},
function () {
});
}
So I am trying to get you the file size but it does not enter the function , shows nothing, someone knows tell me the problem or I am doing wrong.
Because it is neither enough nor enter if, it does not enter the fileEntry.file(Function (file) function nor the Function (fileEntry) { as if it did not recognize it
– Jacob de Oliveira
I debugged here and changed the line
file(function (file) {
forfiles(function (file) {
and did not accuse more errors.– Alisson Pelizaro
Yeah, I’ll try it this way
– Jacob de Oliveira
Did not work, does not enter the Function function (fileEntry) {
– Jacob de Oliveira