mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
add more mimetypes and its extension
This commit is contained in:
parent
120bb3f572
commit
2676b5db8f
|
@ -744,17 +744,27 @@ function get_extension($mimetype) { /* {{{ */
|
|||
case 'application/zip': return '.zip';
|
||||
case 'application/x-gzip': return '.gz';
|
||||
case 'application/x-rar': return '.rar';
|
||||
case 'application/x-7z-compressed': return '.7z';
|
||||
case 'application/x-compressed-tar': return '.tgz';
|
||||
case 'application/x-tar': return '.tar';
|
||||
case 'application/x-xopp': return '.xopp';
|
||||
case 'application/pdf': return '.pdf';
|
||||
case 'application/dxf': return '.dxf';
|
||||
case 'application/msword': return '.doc';
|
||||
case 'application/vnd.ms-powerpoint': return '.ppt';
|
||||
case 'application/vnd.ms-excel': return '.xls';
|
||||
case 'application/postscript': return '.ps';
|
||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': return '.docx';
|
||||
case 'application/vnd.openxmlformats-officedocument.presentationml.presentation': return '.pptx';
|
||||
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': return '.xlsx';
|
||||
case 'application/vnd.oasis.opendocument.text': return '.odt';
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet': return '.ods';
|
||||
case 'application/vnd.oasis.opendocument.presentation': return '.odp';
|
||||
case 'application/vnd.apple.pages': return '.pages';
|
||||
case 'application/vnd.apple.numbers': return '.numbers';
|
||||
case 'application/vnd.apple.keynote': return '.keynote';
|
||||
case 'application/vnd.wordperfect': return '.wpd';
|
||||
case 'application/vnd.ms-works': return '.wps';
|
||||
case 'text/plain': return '.txt';
|
||||
case 'text/csv': return '.csv';
|
||||
case 'text/rtf': return '.rtf';
|
||||
|
|
Loading…
Reference in New Issue
Block a user