read Cordova file transfer params
<p>I am uploading files with cordova file transfer and i read that request with a rest service. Here is an example.</p>

<p><a href="http://www.javatpoint.com/jax-rs-file-upload-example" rel="nofollow">http://www.javatpoint.com/jax-rs-file-upload-example</a></p>

<p>I want to pass some parameters but i do not know how to read them from the upload method that i have in my rest service.</p>

<p>The way i pass thos parameters from file transfer is with</p>

<pre><code>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("http://some.server.com/upload.php"), win, fail, options);
</code></pre>

<p>Any help please?</p>

<p>Thanks and regards!</p>