Skip to content
Snippets Groups Projects
Commit 61949986 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #17964: Add .ppt, .pptx, .m, .rnw

parent f6cb939d
No related branches found
No related tags found
1 merge request!691New version v24.3.0
Pipeline #12116 passed
......@@ -432,28 +432,32 @@ QfqNS.Helper = QfqNS.Helper || {};
return null;
}
const mimeTypesMap = {
'.pdf': 'application/pdf',
'.jpg': 'image/jpeg',
'.jpeg': 'image/jpeg',
'.png': 'image/png',
'.gif': 'image/gif',
'.svg': 'image/svg+xml',
'.txt': 'text/plain',
'.avi': 'video/x-msvideo',
'.doc': 'application/msword',
'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'.xls': 'application/vnd.ms-excel',
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'.gif': 'image/gif',
'.jpeg': 'image/jpeg',
'.jpg': 'image/jpeg',
'.m': 'text/plain',
'.mov': 'video/quicktime',
'.mp3': 'audio/mpeg',
'.wav': 'audio/wav',
'.ogg': 'audio/ogg',
'.mp4': 'video/mp4',
'.avi': 'video/x-msvideo',
'.mov': 'video/quicktime',
'.wmv': 'video/x-ms-wmv',
'.xml': ['application/xml', 'text/xml'],
'.ogg': 'audio/ogg',
'.pdf': 'application/pdf',
'.png': 'image/png',
'.ppt': 'application/powerpoint',
'.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'.py': 'text/x-python',
'.r': 'text/x-r-source',
'.rmd': 'text/markdown'
'.rmd': 'text/markdown',
'.rnw': 'text/markdown',
'.svg': 'image/svg+xml',
'.txt': 'text/plain',
'.wav': 'audio/wav',
'.wmv': 'video/x-ms-wmv',
'.xls': 'application/vnd.ms-excel',
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'.xml': ['application/xml', 'text/xml']
};
return inputString.split(',').map(item => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment