“Requested URI is invalid” during upload with FTPWebRequest

做~自己de王妃 提交于 2019-11-26 19:03:56

If you want to upload something, you'll have to provide the FTPClient with a filename.

FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://12.22.44.45/myNewFile.dat");

I suggest you use WebClient which is a higher level abstraction and works with HTTP and FTP and has much simpler API and performance-wise pretty the same (uses the same API).

Here is upload data.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!