fixed inputstream s3 upload