login about faq

Hello. I'm using ftp2 component and i'm trying to manage ftp events in a UWP Windows Phone application.

I need to get the percentage of completion of a SyncRemoteTreeAsync operation, or alternatively, the percentage/progress of PutFileAsync.

This is my ftp setup:

ftp.Hostname = "ftp.#####.com";
ftp.Username = "#####"
ftp.Password = "#####";
ftp.KeepSessionLog = true;
ftp.VerboseLogging = true;
ftp.AutoGetSizeForProgress = true;

Here's the event handlers:

ftp.ProgressInfo += Ftp_ProgressInfo;
ftp.PercentDone += Ftp_PercentDone;
ftp.BeginUploadFile += Ftp_BeginUploadFile;

When i call one of this methods:

result = await ftp.PutFileAsync(localFile.Path, localFiles.Name);


result = await ftp.SyncRemoteTreeAsync(storageFolder.Path, mode);

no one of this events are fired:

private void Ftp_ProgressInfo(object sender, ProgressInfoEventArgs eventArgs)
private void Ftp_BeginUploadFile(object sender, FtpTreeEventArgs args)
private void Ftp_PercentDone(object sender, PercentDoneEventArgs eventArgs)

what am I doing wrong? Thanks. Giancarlo.

asked May 22 '16 at 03:23

Janx's gravatar image


from where localFiles.Name is assigned


answered Aug 31 '17 at 07:42

MJDKMJ's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 22 '16 at 03:23

Seen: 1,985 times

Last updated: Aug 31 '17 at 07:42

powered by OSQA