开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜