9
Загрузить файл на FTP с помощью C #
Пытаюсь загрузить файл на FTP-сервер с C #. Файл загружен, но без байтов. private void button2_Click(object sender, EventArgs e) { var dirPath = @"C:/Documents and Settings/sander.GD/Bureaublad/test/"; ftp ftpClient = new ftp("ftp://example.com/", "username", "password"); string[] files = Directory.GetFiles(dirPath,"*.*"); var uploadPath = "/httpdocs/album"; foreach (string file in files) { ftpClient.createDirectory("/test"); ftpClient.upload(uploadPath + …
112
c#
.net
file-upload
ftp