I’m going to write an ftp client using .NET Framework. I want to upload files and show how many bytes (or kilobytes) were exactly uploaded. I’ve been looking the way of uploading file over ftp with monitoring the progress but all of them are using libraries.
Is there any way of uploading over ftp and observing the process using standard .NET features?
If yes, I would be grateful for code snippet.
You can use
WebClientfor that. Register for itsUploadProgressChangedandUploadFileCompletedevents and upload the file usingUploadFileAsync().