cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <>
Subject [jira] [Resolved] (CB-7326) File upload fails in WP8
Date Mon, 18 May 2015 23:16:00 GMT


Jesse MacFadyen resolved CB-7326.
    Resolution: Fixed

Please post an example of the types of 'params' you are trying to send.
I suspect this may be an issue with nested object, which should be resolved with the recent
addition of in wp8 and it's use in file-transfer.

Please make the example something like the following that demonstrates exactly what is failing.
var options = new FileUploadOptions();
options.fileKey = "file";
options.fileName = fileURL.substr(fileURL.lastIndexOf('/') + 1);
options.mimeType = "text/plain";

var params = {};
params.value1 = "test";
params.value2 = "param";

options.params = params;

var ft = new FileTransfer();
ft.upload(fileURL, encodeURI(""), win, fail, options);

> File upload fails in WP8
> ------------------------
>                 Key: CB-7326
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer, WP8
>            Reporter: Ian Clelland
>            Assignee: Jesse MacFadyen
> [Transferred from comment in CB-2293]
> I'm facing a similar issue. The image upload fails in Windows Phone 8 (Nokia Lumia 720).
> I'm using the latest stable version of the plugin r0.4.5 from below.
> The example mentioned as part of the plugin document from the above link is not working
in Windows Phone 8.
> The issue is with sending "params" object as part of the request "options". The upload
works when "params" object is removed from the request.
> There is a work around for this as we can send the required params as part of the server
URL itself.
> Example: https://someserver?param1="param1"&param2="param2"
> Sending params like above works. But of course your server side code should be able to
extract it if required.
> But there are many servers which discard any extra param being sent to it as part of
the URl and would not consider it.
> Anybody facing a similar issue and have found any alternate solution to this?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message