public PutObjectRequest newPutObjectRequest ( String key , ObjectMetadata metadata , File srcfile ) { PutObjectRequest putObjectRequest = new PutObjectRequest ( mBucket , key , srcfile ) ; putObjectRequest . setMetadata ( metadata ) ; return putObjectRequest ; }
Create a putObject request . Adds the ACL and metadata