Upload Multiple Files Show Error Code : 3
This question is same like asked here. I want to upload files from device to server, when uploading files ( totally 8 files) it shows error code : 3 for some files( first 5 files )
Solution 1:
Hi phonegap fileTransfer use HTTP multi-part POST request ,this error is due to the connection error. error code : 3 means CONNECTION_ERR
Errorr codes
- FileTransferError.FILE_NOT_FOUND_ERR
- FileTransferError.INVALID_URL_ERR
- FileTransferError.CONNECTION_ERR
- FileTransferError.ABORT_ERR
so to solve this u need to try those files again, first keep those fileUploadoptions [filelocation,url,options] in an array , and call Upload function for each item and onSuccess remove that items from array and try to call upLoad function again, inside upload function fetch one item from that array and process upload until array become empty.
Post a Comment for "Upload Multiple Files Show Error Code : 3"