# How to modify ftp config credentials through msg object

**URL:** https://discourse.nodered.org/t/how-to-modify-ftp-config-credentials-through-msg-object/69984
**Category:** General
**Created:** [2 November 2022 23:04 UTC](https://discourse.nodered.org/t/how-to-modify-ftp-config-credentials-through-msg-object/69984 "2022-11-02T23:04:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![morafelip](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/morafelip/32/70121_2.png) [@morafelip](https://discourse.nodered.org/u/morafelip)
#### Post date: [2 November 2022 23:04 UTC](https://discourse.nodered.org/t/how-to-modify-ftp-config-credentials-through-msg-object/69984/1 "2022-11-02T23:04:27Z")

</div>

ftp node allows you to modify 'filename' and 'localfilename' passing those variables over msg object:  
msg.filename  
msg.localfilename

but I cannot find the way to pass the ftp credentials (host, port, user, password).

I am creating a flow that sends images to same ftp server but with different user and password.

Could you please help me? I am blocked. Thank you.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2022 10:34 UTC](https://discourse.nodered.org/t/how-to-modify-ftp-config-credentials-through-msg-object/69984/2 "2022-11-03T10:34:57Z")

</div>

Welcome to the forum @morafelip

Many have had difficulties with ftp nodes and the usual suggestion is to use an Exec node and call the system ftp commands to do it. That would also allow you to specify the user/password.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 January 2023 10:35 UTC](https://discourse.nodered.org/t/how-to-modify-ftp-config-credentials-through-msg-object/69984/3 "2023-01-02T10:35:38Z")

</div>

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