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

Incorrect documentation for FileTransfer.upload and FileTransfer.download methods

    XMLWordPrintableJSON

Details

    Description

      In the documentation for the FileTransfer method (http://docs.phonegap.com/en/1.6.0/cordova_file_file.md.html#FileTransfer) this is listed as part of the parameters for the upload method:

      • successCallback - A callback that is called with a Metadata object. (Function)
      • errorCallback - A callback that is called if an error occurs retrieving the Metadata. Invoked with a FileError object. (Function)

      In my opinion this should be:

      • successCallback - A callback that is called with a FileUploadResult object. (Function)
      • errorCallback - A callback that is called if an error occurs retrieving the Metadata. Invoked with a FileTransferError object. (Function)

      In the documentation for the download method this is listed as part of the parameters:

      • errorCallback - A callback that is called if an error occurs retrieving the Metadata. Invoked with a FileError object. (Function)

      In my opinion this should be:

      • errorCallback - A callback that is called if an error occurs retrieving the Metadata. Invoked with a FileTransferError object. (Function)

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            wouter123 Wouter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: