Represents a remote batch in the Nuxeo server, to which one ore more files can be uploaded.
For more details about file uploading, check How to Upload a File @ Nuxeo Documentation Center. For more information about batch upload, check Blob Upload for Batch Processing @ Nuxeo Documentation Center.
Inheritance: BatchInfo
コード例 #1
0
 public void AnotherHandShake()
 {
     chunkedBatch = client.Batch().Result;
     Assert.NotNull(normalBatch);
     Assert.NotNull(normalBatch.BatchId);
 }
コード例 #2
0
 public void UploadFileChuncked()
 {
     Blob blob = new Blob(IOHelper.CreateTempFile("This content is chunked. Seriously, really chunked!")).SetFilename("chunked.docx");
     int chunkSize = (int)Math.Ceiling((double)blob.File.Length / 5);
     UploadJob job = new UploadJob(blob);
     job.SetChunked(true);
     job.SetChunkSize(chunkSize);
     chunkedBatch = chunkedBatch.Upload(job).Result;
     BatchFile info = chunkedBatch.Info(chunkedBatch.FileIndex).Result;
     Assert.NotNull(info);
     Assert.Equal(5, info.ChunkCount);
     Assert.Equal(5, info.UploadedChunkIds.Length);
 }
コード例 #3
0
 public void UploadAnotherFile()
 {
     Blob blob = new Blob(IOHelper.CreateTempFile("Yet more content.")).SetFilename("anoterFile.pdf");
     UploadJob job = new UploadJob(blob).SetFileId(1);
     normalBatch = normalBatch.Upload(job).Result;
     Assert.NotNull(normalBatch);
     Assert.NotNull(normalBatch.FileIndex);
     Assert.NotNull(normalBatch.UploadType);
     Assert.NotNull(normalBatch.UploadSize);
     Assert.Equal(1, normalBatch.FileIndex);
     Assert.Equal("normal", normalBatch.UploadType);
     Assert.Equal(17, normalBatch.UploadSize);
 }
コード例 #4
0
 public void UploadFile()
 {
     Blob blob = new Blob(IOHelper.CreateTempFile("Just the content.")).SetFilename("myFile.doc");
     UploadJob job = new UploadJob(blob);
     normalBatch = normalBatch.Upload(job).Result;
     Assert.NotNull(normalBatch);
     Assert.NotNull(normalBatch.FileIndex);
     Assert.NotNull(normalBatch.UploadType);
     Assert.NotNull(normalBatch.UploadSize);
     Assert.Equal(0, normalBatch.FileIndex);
     Assert.Equal("normal", normalBatch.UploadType);
     Assert.Equal(17, normalBatch.UploadSize);
 }
コード例 #5
0
 public void HandShake()
 {
     normalBatch = client.Batch().Result;
     Assert.NotNull(normalBatch);
     Assert.NotNull(normalBatch.BatchId);
 }