Skip to content

Commit

Permalink
Fixes #1597
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotschnig committed Nov 19, 2024
1 parent 1c384ea commit 6634a70
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,14 @@ class OneDriveBackendProvider internal constructor(context: Context, folderName:
log().i("Uploaded $current bytes of $max total bytes", current, max)
}

val clientWithoutAuth = GraphServiceClient.builder()
.authenticationProvider {
CompletableFuture.supplyAsync { null }
}
.buildClient()

val largeFileUploadTask = LargeFileUploadTask(
uploadSession, graphClient, it, streamSize, DriveItem::class.java
uploadSession, clientWithoutAuth, it, streamSize, DriveItem::class.java
)

largeFileUploadTask.upload(0, null, callback)
Expand Down

0 comments on commit 6634a70

Please sign in to comment.