@Prakhar AgrawalUse Fetch SFTP processor instead of Get SFTP and Fetch SFTP processor accepts incoming connections.
Configs:-
1.You Need to update the Remote File value as per your dynamic attribute names.
Remote File | The fully qualified filename on the remote system Supports Expression Language: true |
2.What needs to be done once the files got fetched from the specified directory?
Completion Strategy | None | - None //leaves file as is
- Move File //moves the file to specified destination folder<based on Move destination directory
- Delete File //delete the file once it got fetch from the directory
|
3.Only valid if Completion strategy is Move File
Move Destination Directory | The directory to the move the original file to once it has been fetched from the file system. This property is ignored unless the Completion Strategy is set to "Move File". If the directory does not exist, it will be created. Supports Expression Language: true |

After preparing Dynamic attributes having filenames then use Fetch File processor and change the Configs as per your requirements.