cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CB-5486) upload error code : 3
Date Tue, 18 Feb 2014 22:31:23 GMT

     [ https://issues.apache.org/jira/browse/CB-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joe Bowser reassigned CB-5486:
------------------------------

    Assignee: Ian Clelland

> 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
>            Assignee: Ian Clelland
>
> 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.5#6160)

Mime
View raw message