Skip to content

Commit 7c7c70d

Browse files
author
Caitlin Bales (MSFT)
committed
Add upload override for no options
1 parent f8335b4 commit 7c7c70d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,19 @@ public void upload(final List<Option> options,
193193
this.readSoFar += read;
194194
}
195195
}
196+
197+
/**
198+
* Uploads content to remote upload session based on the input stream
199+
*
200+
* @param callback the progress callback invoked during uploading
201+
* @param configs the optional configurations for the upload options. [0] should be the customized chunk
202+
* size and [1] should be the maxRetry for upload retry.
203+
* @throws IOException the IO exception that occurred during upload
204+
*/
205+
public void upload(final IProgressCallback<UploadType> callback,
206+
final int...configs)
207+
throws IOException {
208+
upload(null, callback, configs);
209+
210+
}
196211
}

0 commit comments

Comments
 (0)