Fix size metadata bug
When uploading certain PNG files the size is incorrectly reported on the OneDrive website and in the Photo object returned by the REST API. This can be reproduced using the following PNG file: http://www2.zippyshare.com/v/11270772/file.html
Just adding a +1
Would really like this sorted so I can use rclone :)
Nick Craig-Wood commented
This is causing issues with rclone (a command line tool for for syncing files) : https://github.com/ncw/rclone/issues/399
Yes downsize_photo_uploads=false is set for uploads. The problem can be reproduce by uploading the mentioned .png file using the OneDrive website as well.
When you upload are you using the downsize_photo_uploads=false query parameter? It might be that your PNG files are being automatically converted.
Have you tried hashing the uploaded and retrieved files and ensuring they are identical?