I tried following code for file upload on FTP:
ft.upload(imageURI.fullPath, encodeURI("URL"), win, fail, options, true);
It throws error like:
- "http_status": 0, "code": 3
- Error getting HTTP status code from connection
I tried following code for file upload on FTP:
ft.upload(imageURI.fullPath, encodeURI("URL"), win, fail, options, true);
It throws error like:
The Phonegap FileTransfer Method have FileTransferError (A FileTransferError object is passed to an error callback when an error occurs.)object It has these properties Properties
Error codes
FileTransferError.FILE_NOT_FOUND_ERR
FileTransferError.INVALID_URL_ERR
FileTransferError.CONNECTION_ERR
FileTransferError.ABORT_ERR
more information check this