Method: AWS::S3::S3Object#content_type

Defined in:
lib/aws/s3/s3_object.rb

#content_typeString

Note:

S3 does not compute content-type. It reports the content-type as was reported during the file upload.

Returns the content type as reported by S3, defaults to an empty string when not provided during upload.

Returns:

  • (String)

    Returns the content type as reported by S3, defaults to an empty string when not provided during upload.



115
116
117
# File 'lib/aws/s3/s3_object.rb', line 115

def content_type
  head.content_type
end