Not able to create file into SFTP folder

HI All,
I have installed "node-red-contrib-better-sftp" into my node red and using this am trying to create the file with the content into the SF


TP folder.
i have done the configuration but i don't able to create the file into my specified folder .
Please help me to resolve this problem
**





I haven't used that node, but always, when you have trouble with a node, the first thing to do is to look at the data you are sending to it. Feed the message that is going into the sftp node into a debug node and show us what is there. That is more important initially than showing us the code in your function.

[Edit] In the node you don't seem to be setting a working directory. Also I would advise against using ./ at the front of the file path. There is no need.

[More Edits] It may not be valid to specify a path for the remote file, it may be that only a file name is allowed. Try that first to get it working.

1 Like

Also, if you look at the issues against the node you will see that none have been answered for a long time, and several of those issues are serious. The conclusion is that the node has been abandoned. You may have to find an alternative way of doing it.

1 Like

thanks Colin ,

the result of each debug

no result for 'debug 40'

How have you configured the node and what error is it showing now?

The readme says that msg.payload.data should be a filename or buffer, not a string ("errors")

I did not do any configuration ; except that I put the name of host d node SFTP , the user , port and the pwd,

I want to take the content of file "/input/text file.csv" and create a new file called "testErrorsfile" with the same content under errors folder.

a

error : node red crush

As I already said, it is not clear that you can specify the folder with the filename. At least for the moment, to see if the node works at all, put the folder in the node configuration and just feed the filename and data in. Look in the help text for where they have to go and check you have it right. There is no point posting screenshots of flows, code or errors until you have got the data in the debug node matching what the node asks for.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.