Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6000

FileTransfer content-type header not consumable for some servers

    XMLWordPrintableJSON

Details

    Description

      Reported via pull request: https://github.com/apache/cordova-plugin-file-transfer/pull/6

      I ran into this bug when testing an app on both iOS and Android and using Nginx as a reverse proxy to my application server. The Content-Type produced by the iOS backend is accepted just fine (with the space), but the Content-Type produced by the Android backend is rejected by Nginx as being a malformed HTTP request (a 400). See more discussion here:
      http://stackoverflow.com/questions/17990705/phonegap-uploading-file-to-server-using-multipart-form-data

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            agrieve Andrew Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: