File upload error on IOS

Hey Everyone,
I cant get my Image Upload to work on IOS. It works fine on android but Ios is causing problems.
Here is my code:

                var server = URLS.INDEX + 'items';
                var options = {
                    fileKey: 'itemPic',
                    params: newItemData,
                    chunkedMode : false,
                    headers: {
                        'x-access-token': authService.getApiToken(),
                        Connection: "close"
                $cordovaFileTransfer.upload(server, filePath, options)
                    .then(function (result) {
                        $state.go('', {}, {
                            reload: true
                        }).then(function () {
                    }, function (err) {
                        if (err.status === 401) {
                    }, function (progress) {

I get an errorcode 3. I found many posts about similar problems but they all fixed ist with Connection : “close” and chunkedMode : false. That is not working for me though. Is there a way to look at the request that fileupload sends on ios?

Maybe it’s because you’re in iOS 9 and using http rather than https (search for iOS 9 transport security)?

All my other http requests are working. I already added all the Exceptions. Do I need something specific for fileupload? :confused:

I checked the Backend. IOS seems to not be parsing the Array and the object inside my params object correctly?
Here the response from the server:

body: "{\"message\":\"Unexpected token u\",\"error\":{}}"
code: 3
exception: null
http_status: 400
source: "file:///var/mobile/Containers/Data/Application/7B768C78-48F1-4A8B-BDC8-35F1C93AEC76/tmp/cdv_photo_007.jpg"
target: "xxxx"

I fixed the issue myself. iOS isn’t able to pares objects inside params object, so i had to convert them to json strings beforehand.