Phonegap's FileTransfer.upload() throwing error code 3 on Android

后端 未结 8 1528
离开以前
离开以前 2020-12-16 03:01

I am working on uploading a picture to a server. I am able to successfully upload an image using iOS but when i try on android I get the error code 3. Currently using phoneg

8条回答
  •  不思量自难忘°
    2020-12-16 03:18

    The issue probably is not in Phonegap. if the server is a Windows based server, try using another server. Also, don´t forget to add these lines:

    var options = new FileUploadOptions();
    options.chunkedMode = false;
    options.headers = {
          Connection: "close"
       };
    

提交回复
热议问题