public function getMediaType()
    {
        $mime = $this->getMime();

        if ($mime == 'file') {
            return $mime;
        }

        foreach ($this->package->config('mime.media') as $mediaType => $mimes) {
            if (in_array($mime, $mimes)) {
                return $mediaType;
            }
        }

        return 'dir';
    }