0

I'm uploading files using FluentFTP Nuget package (UploadFile()). The ftp server is set up so that any added directories/files should inherit the parent's permissions. It does not when I use the package but if I use Filezilla it will. If I try to set access using either Chmod() or SetFilePermissions() and check the value of chmod, it remains zero and I still don't have access.

ftpClient = new FtpClient(host, userID, password);
ftpClient.Connect();
ftpClient.UploadFile(source, FinalFTPPath, FtpRemoteExists.Overwrite, false, 
            FtpVerify.Retry, FTPProgress);
ftpClient.Chmod(finalFTPPath, permissions);
ftpClient.Disconnect();

Is there something else I need to do, or do I need to set something on our ftp server? I use the same login on Filezilla as I do via FluentFTP. Thanks

0 Answers0