The reason why you'll see a different size value in GET /files/{id} is because the value returned is from the binary file data itself. In GET /files/{id}/metadata, the size value you see is from the resource metadata and does not contain the binary file data.