Filetransfer error code 3

Please help if you have expirience with same thing.

Problem: uploading images to server.
Thing i dont understand: images are taken on the same way with camera.

FileTransferError {code: 3, source: “file:///storage/emulated/0/Pictures/day1_TH_233.png”, target: “”, http_status: null, body: null, …}
code: 3
source: “file:///storage/emulated/0/Pictures/day1_TH_233.png”
target: “”
http_status: null
body: null
exception: “Connection reset”

Code for sending images:

fileTransfer.upload(item.put, + 'image_upload', options).then((data) => {
var res = JSON.parse(data.response);

            if (res.success === false) {

            } else {

          }, (err) => {

Actually everything works fine, there is more code that is not need for description. The problem is that 4 images are sent but on 5-th i got that error code 3, pictures are taken on same way and upload is always the same.

1 Like