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) { …
112
c#
.net
file-upload
ftp