Comments (7)
same problem over here.
from jsftp.
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.
thanks, works for me.
from jsftp.
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.
+1
from jsftp.
any other comment about this?
from jsftp.
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)
- Ftp.features is undefined when auth is not called
- list returns wrong filename if filename starts with a space HOT 1
- raw command of send was failed
- Documentation May Be Wrong HOT 1
- Can i sync ftp folder with local folder?
- ftp.get() not working correctly HOT 7
- Browse directories
- Ftp.put can only upload empty files on node10.16.0. If there is content, call error = = = false, but there is no file on the server
- jsftp ls error
- TypeError: this.socket.on is not a function at Ftp._createSocket HOT 3
- How to use 'rmda' command HOT 3
- not support node v10.x (fault upload, download at CentOS8) HOT 2
- Is it possible to use put function for directory
- HTTP proxy
- Ftp.get(remotePath, localPath, callback) creating files with size 0
- DeprecationWarning: Invalid 'main' field in '/workspaces/myblog/node_modules/jsftp/package.json' of './jsftp.js'.
- .rename 501 Bad sequence of commands fix
- FTP raw mkd HOT 1
- Invalid 'main' field in 'D:\hexo\blog\node_modules\jsftp\package.json'
- How to multiple get files [solution]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsftp.