phonegap のファイル転送 API を使用して 000000001.db ファイルをサーバーにアップロードしていますが、エラー file not found error code=1 が表示されます。
function uploadFile() {
alert('uploading file');
// Get URI of picture to upload
var img = document.getElementById('camera_image');
// var imageURI = img.src;
//"/data/data/com.suave.nexttrainer/app_database/file_0/0000000001.db";
//i am giving physical address of database of simulator here
var imageURI = "/data/data/com.suave.nexttrainer/app_database/file_0/0000000001.db";
// Verify server has been entered
server = document.getElementById('serverUrl').value;
alert('server');
if (server) {
// Specify transfer options
var options = new FileUploadOptions();
options.fileKey="file";
options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1);
options.mimeType="image/jpeg";
options.chunkedMode = false;
// Transfer picture/file to server
var ft = new FileTransfer();
alert('ft');
ft.upload(imageURI, server, function(r) {
document.getElementById('camera_status').innerHTML = "Upload successful: "+r.bytesSent+" bytes uploaded.";
}, function(error) {
document.getElementById('camera_status').innerHTML = "Upload failed: Code = "+error.code;
}, options);
}