Fixed issue #334 with the S3Client::upload method where the before_upload option caused errors.