Sometimes sftp is creating a file with name of folder without extension in place of folder. For example here path is sftps root home path and attachment name is folder/filename but Instead of uploading file to folder it’s creating file with folder name without any extension.