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
Description
Large files uploaded to Sharepoint with
m365 spo file addcommand have invalid size. Size is rounded to multiplicity of chunk size.Looks like header attribute
content-lengthis 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