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

fileKey option is being sent with a wrong value due to a mistake in the code

    XMLWordPrintableJSON

Details

    Description

      fileKey option is being sent with a wrong value due to a mistake in the code for BlackBerry10 and FirefoxOS.

      BlackBerry10:

      www/blackberry10/xhrFileTransfer.js
      ...
      upload: function(win, fail, args) {
          var filePath = args[0],
              server = args[1],
              fileKey = args[9],    // Here is the mistake. The index should be 2.
              fileName = args[3],
              mimeType = args[4],
      
      ...
      

      FirefoxOS:

      www/firefoxos/FileTransferProxy.js
      ...
      upload: function(successCallback, errorCallback, args) {
          var filePath = args[0],
              server = args[1],
              fileKey = args[9],    // Here is the mistake. The index should be 2.
              fileName = args[3],
              mimeType = args[4],
      
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            felipeptcho Felipe Lima
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: