fkalis / bash-onedrive-upload

Upload files to onedrive via linux command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show an actual response message instead of a cryptic Code 400 error

tgckpg opened this issue · comments

I was trying to upload a large file. Didn't realize that it was not allowed. After some debugging I found this:

{"error":{"code":"invalidRequest","message":"Declared file size too large. The largest allowed file size is 53687091200 bytes","innererror":{"code":"maxFileSizeExceeded"}}

This happened in function curl_upload_chunk under onedrive-base.