You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Darryl Pogue (JIRA)" <ji...@apache.org> on 2018/05/05 06:53:00 UTC

[jira] [Closed] (CB-11456) [ubuntu] file-transfer plugin upload not working for images

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

Darryl Pogue closed CB-11456.
-----------------------------
    Resolution: Won't Fix

Both Ubuntu and FileTransfer have been deprecated, so I'm closing this issue as Won't Fix.

> [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: cordova-plugin-file-transfer (DEPRECATED), cordova-ubuntu (DEPRECATED)
>    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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org