Description
New graph API based file upload command doesn't handle empty file correctly
Steps to reproduce
touch test.txt
m365 file add --filePath test.txt --folderUrl "https://<sharepoint>/sites/mySite/Shared Documents"
Error: The Content-Range header is missing or malformed.
Expected result
Can upload file with zero bytes
Actual result
Failed upload. If I looked at the output, the Content-Range header is set to "bytes 0--1/0". This is incorrect
Environment
m3565-beta
Description
New graph API based file upload command doesn't handle empty file correctly
Steps to reproduce
Expected result
Can upload file with zero bytes
Actual result
Failed upload. If I looked at the output, the Content-Range header is set to "bytes 0--1/0". This is incorrect
Environment
m3565-beta