OK, so... uploading photos from the app was never a problem... UNTIL SSL was installed on the domain where I transfer the photos to...
When I upload to a domain without SSL (http:// URL), I have no problems at all from any OS and device.
When I upload to a domain through SSL (an https:// domain):
- I have no problems with iOS iphone 4
- I have no problems with Android Sony XPeria phone
BUT
- I HAVE PROBLEMS with Android Samsung Galaxy Tab 3 tablet
Error code 3 is returned by the plugin in the errorCallback function (Code = 3).
After extensive searches on the web I have played with these 3 parameters that have helped other people. However they made no difference to me:
(1) I've set a header with Connection=close to the FileUploadOptions
(2) I've turned off chunkedMode by setting it to false
(3) I've added a sixt parameter to the upload function with value true
The ONLY way FileUpload worked was when I changed the URL to http:// instead of https://
Here is a code extract:
The strange part is that it works on one android device and not on the other...
Any help is very much appreciated.
When I upload to a domain without SSL (http:// URL), I have no problems at all from any OS and device.
When I upload to a domain through SSL (an https:// domain):
- I have no problems with iOS iphone 4
- I have no problems with Android Sony XPeria phone
BUT
- I HAVE PROBLEMS with Android Samsung Galaxy Tab 3 tablet
Error code 3 is returned by the plugin in the errorCallback function (Code = 3).
After extensive searches on the web I have played with these 3 parameters that have helped other people. However they made no difference to me:
(1) I've set a header with Connection=close to the FileUploadOptions
var uploadOptions = new FileUploadOptions();
uploadOptions.headers = {
Connection: "close"
};
(2) I've turned off chunkedMode by setting it to false
uploadOptions.chunckedMode=false;
(3) I've added a sixt parameter to the upload function with value true
ft.upload(
file_url,
encodeURI('https://myurl.com/add_temporary_media.php'),
successCallback,
errorCallback,
uploadOptions,
true);
The ONLY way FileUpload worked was when I changed the URL to http:// instead of https://
Here is a code extract:
if (FileTransfer && FileUploadOptions)
{
log("FileTransfer and FileUploadOptions objects exist");
var uploadOptions = new FileUploadOptions();
uploadOptions.httpMethod="POST";
uploadOptions.mimeType="image/jpeg";
uploadOptions.params=form_data;
uploadOptions.chunkedMode=false;
uploadOptions.headers = {
Connection: "close"
};
log(JSON.stringify(uploadOptions));
var ft = new FileTransfer();
ft.onprogress = onProgressCallBack;
ft.upload(
file_url,
encodeURI(FH.Settings.WebServicesBaseURL() + 'add_temporary_media.php'),
successCallback,
errorCallback,
uploadOptions,
true);
log("upload method called");
}
The strange part is that it works on one android device and not on the other...
Any help is very much appreciated.




Aaron Gusman
SSL handshake aborted: SSL=0x57c45220: I/O error during system call, Connection reset by peer
...
Aaron Gusman
http://stackoverflow.com/questions/28...
Petra V., Champion
- the client only does "TLS 1.0" and the server doesn't support that
- the client uses a DNS which doesn't identify the server correctly
- the client can connect to server only through WLAN, not through a mobile connections
In your case, you might want to
- try different situations with the Tab3, for instance see if the connection type makes any difference
- see what your server's log files say. They might reject some secure protocol initiated by the client.
- google for your error message (of course wthout the specific SSL= value) to see if there are other suggested causes that might ring a bell.
Sorry for not being able to be more specific.