Calls size instead of length on the file object

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