Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server issue: Cordova flie-transfer-plugin working on UAT server but not on Production server #336

Open
4 tasks
CherukuriSiva opened this issue May 27, 2022 · 0 comments

Comments

@CherukuriSiva
Copy link

Issue Type

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant