Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81F6A100A0 for ; Wed, 27 Nov 2013 00:22:37 +0000 (UTC) Received: (qmail 73898 invoked by uid 500); 27 Nov 2013 00:22:36 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 73873 invoked by uid 500); 27 Nov 2013 00:22:36 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 73825 invoked by uid 99); 27 Nov 2013 00:22:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 00:22:36 +0000 Date: Wed, 27 Nov 2013 00:22:36 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-5486) upload error code : 3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-5486: --------------------------------- Description: Android device problem is when i click the link , then it shows download error source https://ddlvideos.s3.amazonaws.com/A%201.mp4 , download error target file:///mnt/sdcard/A 1.mp4 , upoad error code : 3 here is my code {code} document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady(){ window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { window.currentDir = fileSystem.root.fullPath; window.fileSystem = fileSystem; }, fail); } function existsFile(fileName){ fileSystem.root.getFile(fileName, { }, function(f){ console.log(f); alert("file founded: " + f.toURI()); showLink(f.toURI()); }, function(){ window.confirm("would you like to download..?"); downloadFile(fileName); }) } function downloadFile(fileName) { var fileTransfer = new FileTransfer(); fileTransfer.download("https://ddlvideos.s3.amazonaws.com/A%201.mp4", currentDir+"/"+fileName, function(theFile) { alert("download complete: " + theFile.toURI()); showLink(theFile.toURI()); }, function(error) { alert("download error source " + error.source); alert("download error target " + error.target); alert("upload error code: " + error.code); }); } {code} was: Android device problem is when i click the link , then it shows download error source https://ddlvideos.s3.amazonaws.com/A%201.mp4 , download error target file:///mnt/sdcard/A 1.mp4 , upoad error code : 3 here is my code document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady(){ window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { window.currentDir = fileSystem.root.fullPath; window.fileSystem = fileSystem; }, fail); } function existsFile(fileName){ fileSystem.root.getFile(fileName, { }, function(f){ console.log(f); alert("file founded: " + f.toURI()); showLink(f.toURI()); }, function(){ window.confirm("would you like to download..?"); downloadFile(fileName); }) } function downloadFile(fileName) { var fileTransfer = new FileTransfer(); fileTransfer.download("https://ddlvideos.s3.amazonaws.com/A%201.mp4", currentDir+"/"+fileName, function(theFile) { alert("download complete: " + theFile.toURI()); showLink(theFile.toURI()); }, function(error) { alert("download error source " + error.source); alert("download error target " + error.target); alert("upload error code: " + error.code); }); } > upload error code : 3 > --------------------- > > Key: CB-5486 > URL: https://issues.apache.org/jira/browse/CB-5486 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.9.0, 3.0.0 > Reporter: gopi > Labels: newbie > > Android device problem is when i click the link , > then it shows download error source https://ddlvideos.s3.amazonaws.com/A%201.mp4 , > download error target file:///mnt/sdcard/A 1.mp4 , > upoad error code : 3 > here is my code > {code} > document.addEventListener("deviceready", onDeviceReady, false); > function onDeviceReady(){ > window.requestFileSystem( > LocalFileSystem.PERSISTENT, 0, > function onFileSystemSuccess(fileSystem) { > window.currentDir = fileSystem.root.fullPath; > window.fileSystem = fileSystem; > }, fail); > } > function existsFile(fileName){ > fileSystem.root.getFile(fileName, { > }, > function(f){ > console.log(f); > alert("file founded: " + f.toURI()); > showLink(f.toURI()); > }, > function(){ > window.confirm("would you like to download..?"); > downloadFile(fileName); > }) > } > function downloadFile(fileName) { > var fileTransfer = new FileTransfer(); > fileTransfer.download("https://ddlvideos.s3.amazonaws.com/A%201.mp4", > currentDir+"/"+fileName, > function(theFile) { > alert("download complete: " + theFile.toURI()); > showLink(theFile.toURI()); > }, > function(error) { > alert("download error source " + error.source); > alert("download error target " + error.target); > alert("upload error code: " + error.code); > }); > } > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)