NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class Mimetypes

Provides mappings of file extensions to mimetypes

Namespace: Guzzle\Http
Link: http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
Located at Guzzle/Http/Mimetypes.php

## Methods summary

- `public static` `getInstance ( )`

  Get a singleton instance of the class

- `public` `fromExtension ( string $extension )`

  Get a mimetype value from a file extension

- `public` `fromFilename ( string $filename )`

  Get a mimetype from a filename

## Methods detail

# `public static `Guzzle\Http\Mimetypes``
`getInstance( )`

Get a singleton instance of the class

#### Returns

``Guzzle\Http\Mimetypes``

#### CodeCoverageIgnore

# `public string|null`
`fromExtension( string $extension )`

Get a mimetype value from a file extension

#### Parameters

$extension
  `string`
  $extension File extension

#### Returns

`string|null`
# `public string|null`
`fromFilename( string $filename )`

Get a mimetype from a filename

#### Parameters

$filename
  `string`
  $filename Filename to generate a mimetype from

#### Returns

`string|null`

### Magic methods summary

## Properties summary

`protected static `Guzzle\Http\Mimetypes`` | $instance | #
`protected array` | $mimetypes | # Mapping of extension to mimetype