Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
-
None
Description
When tryin to send structured data with files, values as send as string (representing JSON object), rather than structured data.
Example:
var options = new FileUploadOptions(); options.fileKey = "file"; options.fileName = 'file.jpg'; options.mimeType = "image/jpg"; var params = {object1: {value1: "1", value2:"2"}, object2: {value1: "1", value2:"2"}}; options.params = params; var ft = new FileTransfer(); ft.upload(filePath, encodeURI(url), win, fail, options);
My server code receives params
object1 = "{\"value1\":\"1\",{\"value2\":\"2\"}" object2 = "{\"value1\":\"1\",{\"value2\":\"2\"}"
It should receive
object1 = {value1: "1", value2: "2"} object2 = {value1: "1", value2: "2"}
Attachments
Issue Links
- relates to
-
CB-9600 FileUploadOptions params not posted on iOS
- Closed