cordova - Phonegap Error code 3 on FileTransfer on iOS when trying to upload an image -


I have researched this topic a ton, and this error is normal for Android or other stuff, but this solution is my Not applicable to the problem.

I'm getting error code 3 when I try to upload an image from the phone to the server PhoneGap does not specify the documentation that error code 3 is what I tried the connections: close fixes, with Any other just fine but this does not help, it is happening every time, on iOS, I tried some different servers, which does not include PHP script with any cross domain issues and it still Returns the error code 3. The code is below. Thanks for any help.

  function getPhoto (source) {// specified source navigator. Recover image file location from image. Image (PerfotoIrisUse, Onfile, {Quality: 10, Destination Type: Destination Type. FILE_URI, Source Type: Source}); } Function (function URL) {uploadPhoto (imageURI)} Options.fileKey = "file"; Options.fileName = imageURI.substr (imageURI.lastIndexOf ('/') + 1); Options.mimeType = "image / jpeg"; Options.headers = {Connection: "Off"} options.chunkedMode = false; Var Params = {}; Params.value1 = "test"; Params.value2 = "Ultimate"; Alert ('preloaded') option. Parameter = parameter; Var ft = new FileTransfer (); Ft.upload (imageURI, encodeuri ('http: //my.server.url/upload.php'), win, fail, option, true); }    

Try it out:

Quality: 40,

Destination type: parent.window.Camera.DestinationType.DATA_URI,

DATA_URI a FILE_URI

Regards Radu

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -