[ad_1]
We have now Cordova-based iOS and android apps which might be working on manufacturing and UAT for the final 12 months.
- Through the use of these apps customers can uploads pictures, audio, and movies to a server.
- The identical functions working fantastic for the final 12 months however from the previous couple of days manufacturing server isn’t receiving the attachments.
- However all different API calls to the identical manufacturing server working fantastic.
- Whereas testing the file add from the android app on the manufacturing server… createAttachment API request has not even reached the manufacturing server.
- However the identical software working fantastic on the UAT server. All the things identical however solely the endpoint is completely different.
- This undertaking is a really previous undertaking and now we have not up to date this app for a very long time.
Something mistaken with the manufacturing’s SSL certificates. Want some steering right here to repair this subject.
var reactThis =this;
var choices = new FileUploadOptions();
choices.fileKey = "file";
choices.chunkedMode = false;
choices.fileName = "5.jpg";
choices.mimeType = "textual content/plain";
choices.headers = { headerParam: 'headerValue', Connection: 'shut' };
var params = {};
params.fileType = fileType;
choices.params = params;
console.log("*importing "+fileType+" filename "+choices.fileName);
var ft = new FileTransfer();
ft.onprogress = operate (progressEvent) {
};//finish ft on progress operate
var uri = encodeURI(app.serverurl + "createAttachment");
var win = (response) => {
});
var fail = (error) => {
});
}
ft.add(fileURL, uri, win, fail, choices,true);
We’re utilizing the under applied sciences and variations.
## Challenge Configuration and variations ##
$ node -v
v8.12.0
$ cordova -v
7.1.0
$ monaca -v
2.4.1
$ npm -v
6.4.1
$ gradle --version
------------------------------------------------------------
Gradle 4.1
------------------------------------------------------------
[ad_2]
