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

后端 未结 8 1504
离开以前
离开以前 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:28

    I've asked Telerik about this issue that I experience with AppBuilder. According to their response it might be a bug in Cordova (I'm using 3.2).

    They recommend updating to the latest FileTransfer library (also update all the dependencies) and see if that solves your issue. I actually ran into another problem compiling the new libraries.

    I recommend trying that and see if that works for you.

    0 讨论(0)
  • 2020-12-16 03:33

    You can try either of these:

    Set android:debuggable="true" in the <application> tag of your AndroidManifest.xml file.

    Set <access origin=".*"/> instead of just the * as it's recommended in the comments section as follows:

    <!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
    <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
    <!-- <access origin=".*"/> Allow all domains, suggested development use only -->
    
    0 讨论(0)
提交回复
热议问题