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

Alexandre Abreu reassigned CB-11456:
------------------------------------

    Assignee: Alexandre Abreu

> [ubuntu] file-transfer plugin upload not working for images
> -----------------------------------------------------------
>
>                 Key: CB-11456
>                 URL: https://issues.apache.org/jira/browse/CB-11456
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer, Ubuntu
>    Affects Versions: 6.0.1
>         Environment: ubuntu, aquaris E4.5
>            Reporter: Thomas Uher
>            Assignee: Alexandre Abreu
>            Priority: Critical
>
> If an image is uploaded, a .txt file is uploaded instead
> code:
> function gotPicture(entry){   
>       var fileTransfer = new FileTransfer();
>         var uri = encodeURI("URL");
>         var fileURL = entry.toInternalURL();
>         var options = new FileUploadOptions();
>       options.fileKey = fileKey;
>       options.fileName = "picture.jpg";
>       options.mimeType = "image/jpeg";
>               
>       fileTransfer.upload(fileURL, encodeURI(URL), successCB, errorCB, 
> options);
>       
>       }
>       
>       window.resolveLocalFileSystemURL(picturePath, gotPicture, fail);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to