Giter Site home page Giter Site logo

Comments (8)

tsonevn avatar tsonevn commented on July 19, 2024

Hi @3rror404,
I reviewed your issue and found that this problem could be reproduced, when you try to upload image with large size. We will research, what is causing this problem for Android. Regarding to that I am attaching link to a sample project, where the problem could be reproduced.

from nativescript-background-http.

nraboy avatar nraboy commented on July 19, 2024

Was this ever fixed? I'm still having the same problem on Android.

from nativescript-background-http.

tsonevn avatar tsonevn commented on July 19, 2024

Hi @nraboy,
I have to confirm that this is still a real issue. We will research the reason for this problem and will verify, whether this is something related to android-upload-service. Unfortunately, I cannot commit to an exact time frame when this will be ready.

from nativescript-background-http.

Daxito avatar Daxito commented on July 19, 2024

This plugin is working for me very well, firing the Complete Event, uploading images 7 to 8 MB size, is this issue related to bigger files only???

from nativescript-background-http.

nraboy avatar nraboy commented on July 19, 2024

To be clear, it is uploading fine for me, however, the complete event is not firing for me. This is the case for uploads of any size, big or small. It isn't particularly useful if I don't know the upload has finished.

I have been testing on Android 6.0 if that makes a difference.

Best,

from nativescript-background-http.

RyanSMurphy avatar RyanSMurphy commented on July 19, 2024

+1, android only fires the error event for myself.

from nativescript-background-http.

lini avatar lini commented on July 19, 2024

Please see #89 for more information about this issue. It seems the problem is with the https://httpbin/post test service itself. The response it sends back is too large when you upload large files and it cannot be handled correctly. If you test with another service that just responds with "File uploaded OK" or something similar, the complete event should fire as expected.

from nativescript-background-http.

flow96 avatar flow96 commented on July 19, 2024

Hi, I had the same error that the complete event was not triggered.
I was able to fix it by setting the statusCode to 200 in my server, as soon as the file has successfully been uploaded.

For example:

app.post("/upload", function(req, res){
    // .. Upload stuff and file saving
    // as soon as the file is uploaded
    res.statusCode = 200;
    res.setHeader('Content-Type', 'text/plain');
    res.end('OK\n');
});

from nativescript-background-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.