标签: c# .net server ftp file-transfer
我能够从本地计算机上将文件上传到ftp服务器,而不能从其他ftp服务器上载。
using (WebClient client = new WebClient()) { client.Credentials = credentials; client.UploadFile("ftp://server/F2/" + name, WebRequestMethods.Ftp.UploadFile, localFilePath); }