retry for failed s3 calls
check for max size before starting upload