“Requested URI is invalid” during upload with FtpWebRequest

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");

Leave a Comment