I'm writing a C# app in Visual Studio 2017 and want to use UploadFileTaskAsync instead of UploadFile but I'm going to be sending up 50+ files in the run. How do I know when it's complete? I'm very new to C# so I'm learning by searching and trial/error so I apologize if this is a poorly formed question.
I found posts about UploadFileTaskAsync and it's usage but nothing about how it can be setup to notify the app that it's done.
Here's the code I'm using (that I found):
byte[] response = await webClient.UploadFileTaskAsync(new Uri("ftp://" + "username" + ":" +"pass" +"@" + "address/" + "name.ext"), fd.FileName);
I'm doing byte[] response
instead of Task<byte[]> response
because VS doesn't like byte[]
in Task<>
for UploadFileTaskAsync
.