FTP fileupload with progress
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 开发者_如何学Go.NET features? If yes, I would be grateful for code snippet.
You can use WebClient
for that. Register for its UploadProgressChanged
and UploadFileCompleted
events and upload the file using UploadFileAsync()
.
精彩评论