Re: FilePermission on Upload file FTP protocol
I overlooked that you are using FTP protocol.
Setting permissions of uploaded files is not supported with FTP.
https://winscp.net/eng/docs/ui_transfer_custom#upload
You might be able to useSession.ExecuteCommand("SITE CHMOD 777 /tmp/patch.tgz")
This works! Many many thanks.