Hi @d d
No.
When using the OneDrive API to upload a file, if you don't know the actual total file size beforehand, you cannot arbitrarily specify a fixed value (like 1024MB). The OneDrive API requires that you specify the accurate file size in the Content-Range
header when uploading a file. If the specified file size does not match the actual uploaded file size, the request will fail.
Therefore, you cannot specify the total file size as 1024MB before uploading and expect the server to accept and reflect the actual uploaded size. You need to ensure that the file size specified in each request is accurate.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.