开发者

FTP fileupload with progress

开发者 https://www.devze.com 2023-03-19 14:54 出处:网络
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

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消