Add many new mimetype

This commit is contained in:
Sébastien Lucas 2012-06-26 14:52:01 +02:00
parent 41974dedb8
commit 93f1f72a65

View file

@ -17,9 +17,31 @@ class Data extends Base {
public $book; public $book;
public static $mimetypes = array( public static $mimetypes = array(
'epub' => 'application/epub+zip', 'azw' => 'application/x-mobipocket-ebook',
'mobi' => 'application/x-mobipocket-ebook', 'cbz' => 'application/x-cbz',
'pdf' => 'application/pdf' 'cbr' => 'application/x-cbr',
'doc' => 'application/msword',
'epub' => 'application/epub+zip',
'fb2' => 'text/fb2+xml',
'kobo' => 'application/x-koboreader-ebook',
'mobi' => 'application/x-mobipocket-ebook',
'lit' => 'application/x-ms-reader',
'lrs' => 'text/x-sony-bbeb+xml',
'lrf' => 'application/x-sony-bbeb',
'lrx' => 'application/x-sony-bbeb',
'ncx' => 'application/x-dtbncx+xml',
'opf' => 'application/oebps-package+xml',
'otf' => 'application/x-font-opentype',
'pdb' => 'application/vnd.palm',
'pdf' => 'application/pdf',
'prc' => 'application/x-mobipocket-ebook',
'rtf' => 'application/rtf',
'svg' => 'image/svg+xml',
'ttf' => 'application/x-font-truetype',
'wmf' => 'image/wmf',
'xhtml' => 'application/xhtml+xml',
'xpgt' => 'application/adobe-page-template+xml',
'zip' => 'application/zip'
); );
public function __construct($post, $book = null) { public function __construct($post, $book = null) {