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");
More Related Contents:
- C# Download all files and subdirectories through FTP
- Upload and download a file to/from FTP server in C#/.NET
- C# class to parse WebRequestMethods.Ftp.ListDirectoryDetails FTP response
- How to check if file exists on FTP before FtpWebRequest
- Does .NET FtpWebRequest Support both Implicit (FTPS) and explicit (FTPES)?
- FtpWebRequest FTP download with ProgressBar
- Upload file on FTP
- FtpWebRequest returns error 550 File unavailable
- How to download FTP files with automatic resume in case of disconnect
- FtpWebRequest Download File
- How to check if an FTP directory exists
- Output log using FtpWebRequest
- Parsing FtpWebRequest ListDirectoryDetails line
- How can we show progress bar for upload with FtpWebRequest
- Upload file to FTP using C#
- Upload file and download file from FTP
- How do I create a directory on FTP server using C#?
- FTP directory partial listing with wildcards
- Can connect to FTP using FileZilla or WinSCP, but not with FtpWebRequest or FluentFTP
- Retrieving creation date of file (FTP)
- How to List Directory Contents with FTP in C#?
- Can’t connect to FTP: (553) File name not allowed
- How to send arbitrary FTP commands in C#
- C# Point in polygon
- string.IsNullOrEmpty(string) vs. string.IsNullOrWhiteSpace(string)
- Enumerating through an object’s properties (string) in C#
- What is the best way to get the executing exe’s path in .NET?
- How to write an image from byte[] into MS WORD using C# Windows application
- When is “using” block used for in C#? How to use “using” block in C#?
- Self deletable application in C# in one executable