node-ftp-client | node-ftp-client is a wrapper for the popular FTP client | FTP library
kandi X-RAY | node-ftp-client Summary
kandi X-RAY | node-ftp-client Summary
node-ftp-client
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-ftp-client
node-ftp-client Key Features
node-ftp-client Examples and Code Snippets
Community Discussions
Trending Discussions on node-ftp-client
QUESTION
I had just posted a recent question using client-ftp and was told that package was outdated and was the source of my original problem. As suggested I moved to an package that is still being maintained, which is jsftp. However, I am still having similiar issues. For reference my previous question can be found here. I will still restate my problem as it has changed slightly.
I am new to Angular/Node and am trying to connect to an ftp server.
I am creating a button on the front end like this:
Download Screenshot
My new implementation to download is this:
...ANSWER
Answered 2018-Aug-02 at 20:56You tagged typescript, presumably because of the TypeError
, which is a javascript, not a typescript, error (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_function).
Secondly, you seem to be confused between javascript on NodeJS, which is the back end, and in the browser, which is the front end. You cannot run jsftp
in the browser, so your approach needs to change.
If your intent is to let the user download an ftp file from their browser when they click the link, you should be able to link to it directly in the href, without any javascript. Take a look at the answers to this question for more info: Is it possible to download file from FTP using Javascript?
QUESTION
I'm new to Angular/Node and cannot seem to figure out a problem I'm having.
I'm trying to connect to an ftp using client-ftp and am having trouble with the implementation. Essentially I'm creating a button on the front end like this:
Download Screenshot
And implementing trying to implement it via a click event like this:
...ANSWER
Answered 2018-Aug-02 at 05:49Initial Overview
There is an anomaly is your file path within the client.download
method. The path /stfFilepPath
seems to have an extra 'p'. Try removing it unless that is the actual name of the path.
So;
client.download('/sftFilepPath', './Downloads'
becomes
client.download('/sftFilePath', './Downloads'
Try it out and let me know if it works. If not try Lynx's solution.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-ftp-client
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page