AddFile() публичный Метод

Adds a file to the upload queue.
public AddFile ( string file ) : Uploader
file string The path to the file to be uploaded.
Результат Uploader
Пример #1
0
 public void BatchUploadWithUploader()
 {
     uploader = client.Uploader().SetChunked(true).SetChunkSize(1024); // 1KB = 1024B
     Entity result = uploader.AddFile("Test.txt")
                               .AddFile("Puppy.docx")
                               .UploadFiles().Result;
     Assert.NotNull(result);
     Assert.True(result is EntityList<Entity>);
     Assert.Equal(2, ((EntityList<Entity>)result).Count);
 }