Sending the correct file to aws s3