Giter VIP home page Giter VIP logo

Comments (7)

seeya avatar seeya commented on May 25, 2024

same problem over here.

from jsftp.

bastibeckr avatar bastibeckr commented on May 25, 2024

Hi, I fixed it this way: 5080578
Don't know if it's the most elegant solution... At least it is a quick fix that works for me.

from jsftp.

seeya avatar seeya commented on May 25, 2024

thanks, works for me.

from jsftp.

Miroku87 avatar Miroku87 commented on May 25, 2024

Hey I have the same problem.
How do you use the chunksize information you add to the data object?
By making something like uploaded += data.chunksize?

I am using this method but it's not very precise, most of all with small files.
It would be really great to have the transferred fixed.

from jsftp.

qanuj avatar qanuj commented on May 25, 2024

+1

from jsftp.

kivervinicius avatar kivervinicius commented on May 25, 2024

any other comment about this?

from jsftp.

PaykomanVll avatar PaykomanVll commented on May 25, 2024

So i know not why but the key 'bytesWritten' is only undefined.

Seek 'Ftp.prototype.emitProgress' and change

transferred: data.socket[data.action === 'get' ? 'bytesRead' : 'bytesWritten']

to:

transferred: (data.action === 'get' || data.socket.bytesRead != 'file transfered') ? data.socket.bytesRead : true

I know not is bytesRead the real sending status or a buffer that has parsed the file but i think for a progressbar status is it ok. The final call must go from the ftp.put() function.

I have tested it with an 220mb file and have send it to a other server i get much many callbacks and step for step will 'transferred' increased (max is totalsize then is true).

from jsftp.

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.