Working synchronous S3 upload implementation.