Skip to content

Upload large files using sdk v3 failed #182

@ProRoman

Description

@ProRoman

Hi

After migrating to sdk v3 I get "Upload session failed" for large files.

After debugging I found that the upload session is completed without error

com.microsoft.graph.tasks.LargeFileUploadResponseHandler#generateResult

 } else if (location != null) {
                    logger.logDebug("Upload session is completed (Outlook), uploaded item returned.");
                    return new LargeFileUploadResponse<>(location);
                } 

But com.microsoft.graph.tasks.LargeFileUploadRequest#upload failed because the upload response contains only the location and result.chunkCompleted() is false

if (result != null && result.chunkCompleted()) {
            return result;
        } else
            return new LargeFileUploadResponse<UploadType>(
                new ClientException("Upload session failed.", result == null ? null : result.getError()));

Regards, Roman.

AB#8862

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions