Phonegap : FileTransfer.upload() fails on Android

前端 未结 2 1859
无人及你
无人及你 2020-12-10 18:40

I\'m currently trying to upload a picture to a server with the FileTransfer.upload() method of PhoneGap. It works fine on the iPhone Simulator over Wifi, but fails on an And

2条回答
  •  难免孤独
    2020-12-10 19:20

    Error code 3 is a connection error. Recently we made chunked mode the default for uploading on Android. Try setting your options object to have a chunked mode that is false.

    var options = FileUploadOptions();
    options.chunkedMode = false;
    

提交回复
热议问题