Skip to content

Commit f584ead

Browse files
committed
- adds upgrade notes for the large file upload task rename
1 parent e9c03c8 commit f584ead

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/upgrade-to-v3.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,36 @@ This new version improves the Java API provided to developers. To upgrade your a
224224
225225
> Note: the `DeltaCollectionPage` also offers a `getNextPage` method which simplifies iterating through results and removes the need for consumers to directly handle the next link themselves.
226226
227+
### ChunkedUploadProvider renamed to LargeFileUploadTask
228+
229+
The chunked upload provider has been renamed to larg file upload task and moved from the concurrency package to the tasks package in order to align with SDK design specifications and to clarify the intend of the class. To upgrade your application do the following.
230+
231+
- Replace any of the following
232+
233+
```Java
234+
import com.microsoft.graph.concurrency.ChunkedUploadProvider;
235+
```
236+
237+
By
238+
239+
```Java
240+
import com.microsoft.graph.tasks.LargeFileUploadTask;
241+
```
242+
243+
- Replace any of the following
244+
245+
```Java
246+
final DriveItem result = chunkedUploadProvider.upload();
247+
```
248+
249+
By
250+
251+
```Java
252+
final LargeFileUploadResult<DriveItem> result = largeFileUploadTask.upload();
253+
```
254+
255+
> Note: The **LargeFileUploadTask** now also provides an **uploadAsync** method to perform uploads in the background.
256+
227257
## Upgrade guide for non-breaking improvments
228258
229259
This section lists out other improvements which are not considered as breaking changes. SDK users are strongly encouraged to take advantage of those new improvements to simplify their code.

0 commit comments

Comments
 (0)