changes upload type checking to content-type header

also now sending proper content-type headers to s3 put cmd.