I have to upload file using Ftp protocol on server, and rename uploaded file after uploading.
I can upload it, but don\'t know how to rename it.
Code looks l
Why not just upload it with the correct filename in stead? Change your first line with the filename you actually want.
FtpWebRequest requestFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServer + "/" + "httpdocs/webroot/" + destination + "/" + newFileName));
But do open the reading stream from your old filename.