CherukuriSiva opened a new issue, #336:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/336
### Issue Type
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] Bug Report
- [ ] Feature Request
- [ x] Support Question
## Description
## Information
We have Cordova-based iOS and android apps that are running on production
and UAT for the last year.
By using these apps users can uploads images, audio, and videos to a server.
The same applications working fine for the last year but for the last few
days production server is not receiving the attachments.
But all other API calls to the same production server working fine.
While testing the file upload from the android app on the production
server... createAttachment API request has not even reached the production
server.
But the same application working fine on the UAT server. On the mobile app
side, everything same but only the endpoint URL is different.
This project is a very old project and we have not updated this app for a
long time.
### Command or Code
```
var reactThis =this;
var options = new FileUploadOptions();
options.fileKey = "file";
options.chunkedMode = false;
options.fileName = "5.jpg";
options.mimeType = "text/plain";
options.headers = { headerParam: 'headerValue', Connection: 'close' };
var params = {};
params.fileType = fileType;
options.params = params;
console.log("*uploading "+fileType+" filename "+options.fileName);
var ft = new FileTransfer();
ft.onprogress = function (progressEvent) {
};//end ft on progress function
var uri = encodeURI(app.serverurl + "createAttachment");
var win = (response) => {
});
var fail = (error) => {
});
}
ft.upload(fileURL, uri, win, fail, options,true);
```
### Environment, Platform, Device
android
iOS
### Version information
```
$ 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
------------------------------------------------------------
```
## Checklist
- [ x] I searched for already existing GitHub issues about this
- [ ] I updated all Cordova tooling to their most recent version
- [ ] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]