Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.6.0
-
None
-
None
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)