Calls size instead of length on the file object

The request to amazon was being sent with an undefined ContentLength, and seems that without it amazon returns a 501 code with a transfer-encoding header error.