I\'m writing an Android application with Phonegap 1.4.1 and Sencha that downloads and reads pdf files. How can I check whether the file exists in the phone directory using e
Darkaico, Kurt and thomas answers didn't work for me. Here's what worked for me.
$.ajax({ url:'file///sdcard/myfile.txt', type:'HEAD', error: function() { //file not exists alert('file does not exist'); }, success: function() { //file exists alert('the file is here'); } });