create special MIME type for .cdr files so that they aren't interpreted as image files
This commit is contained in:
parent
02761222c1
commit
383ea58e2f
3 changed files with 4 additions and 3 deletions
|
@ -213,5 +213,5 @@ class MimeTypes(dict):
|
||||||
mimeTypes = MimeTypes()
|
mimeTypes = MimeTypes()
|
||||||
|
|
||||||
|
|
||||||
mimetypes.init(mimetypes.knownfiles +
|
mimetypes.init([os.path.join(os.path.dirname(__file__), 'mime.types')] +
|
||||||
[os.path.join(os.path.dirname(__file__), 'mime.types')])
|
mimetypes.knownfiles)
|
||||||
|
|
|
@ -346,6 +346,7 @@ application/x-cdf cdf
|
||||||
application/x-cdlink vcd
|
application/x-cdlink vcd
|
||||||
application/x-chess-pgn pgn
|
application/x-chess-pgn pgn
|
||||||
application/x-core
|
application/x-core
|
||||||
|
application/x-coreldraw cdr
|
||||||
application/x-cpio cpio
|
application/x-cpio cpio
|
||||||
application/x-csh csh
|
application/x-csh csh
|
||||||
application/x-debian-package deb udeb
|
application/x-debian-package deb udeb
|
||||||
|
@ -555,7 +556,6 @@ image/vnd.svf
|
||||||
image/vnd.wap.wbmp wbmp
|
image/vnd.wap.wbmp wbmp
|
||||||
image/vnd.xiff
|
image/vnd.xiff
|
||||||
image/x-cmu-raster ras
|
image/x-cmu-raster ras
|
||||||
image/x-coreldraw cdr
|
|
||||||
image/x-coreldrawpattern pat
|
image/x-coreldrawpattern pat
|
||||||
image/x-coreldrawtemplate cdt
|
image/x-coreldrawtemplate cdt
|
||||||
image/x-corelphotopaint cpt
|
image/x-corelphotopaint cpt
|
||||||
|
|
|
@ -43,6 +43,7 @@ extensions = {
|
||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
|
||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.template': 'xltx',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.template': 'xltx',
|
||||||
'application/vnd.visio': 'vsd',
|
'application/vnd.visio': 'vsd',
|
||||||
|
'application/x-coreldraw': 'cdr',
|
||||||
'application/x-pdf': 'pdf',
|
'application/x-pdf': 'pdf',
|
||||||
'image/gif': 'gif',
|
'image/gif': 'gif',
|
||||||
'image/jpeg': 'jpg',
|
'image/jpeg': 'jpg',
|
||||||
|
|
Loading…
Add table
Reference in a new issue