public function getMediaType()
    {
        $contentType = $this->getServer('CONTENT_TYPE');
        if (!empty($contentType)) {
            if ($parts = explode(';', $contentType)) {
                return trim($parts[0]);
            }
        }

        return '';
    }