Hi!
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.
Error:
FileTransferError {code: 3, source: “file:///storage/emulated/0/Pictures/day1_TH_233.png”, target: “http://xxx.xx.xx.xxx:xxxx/api/image_upload”, http_status: null, body: null, …}
code: 3
source: “file:///storage/emulated/0/Pictures/day1_TH_233.png”
target: “http://xxx.xx.xx.xxx:xxxx/api/image_upload”
http_status: null
body: null
exception: “Connection reset”
Code for sending images:
fileTransfer.upload(item.put, test.my.API + 'image_upload', options).then((data) => {
var res = JSON.parse(data.response);
if (res.success === false) {
} else {
}
}, (err) => {
console.log(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.