You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2015/10/23 10:24:27 UTC

[jira] [Commented] (CB-7507) Params Not Sent Over HTTPS when using File Upload Plugin

    [ https://issues.apache.org/jira/browse/CB-7507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14970640#comment-14970640 ] 

jcesarmobile commented on CB-7507:
----------------------------------

you receive the file but not the params?
or you don't receive anything?
might be a server certificate problem, have you tried with trustAllHosts = true?
{code}
ft.upload(imageURI, encodeURI("https://www.mywebsite.com/upload.php"), win, fail, options, true);
{code}

> Params Not Sent Over HTTPS when using File Upload Plugin
> --------------------------------------------------------
>
>                 Key: CB-7507
>                 URL: https://issues.apache.org/jira/browse/CB-7507
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 3.5.0
>         Environment: Android 4.4.4
>            Reporter: Robbie Elias
>              Labels: Android
>
> The title says it all, I can't access any POST variables in my PHP code when completing the file transfer over HTTPS. However, this works fine when I use HTTP.
> Here's my code:
> {code}
> var options = new FileUploadOptions();
> options.fileKey = "file";
> options.fileName = imageURI.substr(imageURI.lastIndexOf('/') + 1);
> options.mimeType = "text/plain";
> var params = {};
> params.userid = localStorage.userid;
> options.params = params;
> var ft = new FileTransfer();
> ft.upload(imageURI, encodeURI("https://www.mywebsite.com/upload.php"), win, fail, options);
> {code}



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

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