Skip to content

Bug report: Uploaded files have incorrect size (m365 spo file add) #2199

@JakubWoo

Description

@JakubWoo

Description

Large files uploaded to Sharepoint with m365 spo file add command have invalid size. Size is rounded to multiplicity of chunk size.
Looks like header attribute content-length is ignored and whole buffer is send and written when uploading file chunks.

Steps to reproduce

Upload file larger than chunk size (250MB).

Expected result

File has size and content matching expected.

Actual result

File size is rounded to multiplicity of chunk size, content above expected size is filled with binary zeros.

Environment

Linux, Ubuntu 20.04 LTS.
m365 v3.5.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions