@pinuts/bsr-uikit-relaunch
Version:
BSR UI-KIT Relaunch
55 lines (54 loc) • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.ACCEPTED_UPLOAD_TYPE_MAPPING = void 0;
const ACCEPTED_UPLOAD_TYPE_MAPPING = exports.ACCEPTED_UPLOAD_TYPE_MAPPING = {
// General file formats
'text/plain': ['.txt', '.text', '.log'],
'text/html': ['.html', '.htm'],
'text/css': ['.css'],
'text/csv': ['.csv'],
'application/pdf': ['.pdf'],
'application/rtf': ['.rtf'],
'application/xml': ['.xml'],
'application/json': ['.json'],
'application/zip': ['.zip'],
'application/x-7z-compressed': ['.7z'],
'application/x-rar-compressed': ['.rar'],
'application/msword': ['.doc'],
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx', '.docm'],
'application/vnd.ms-excel': ['.xls'],
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ['.xlsx', '.xlsm'],
'application/vnd.ms-powerpoint': ['.ppt'],
'application/vnd.openxmlformats-officedocument.presentationml.presentation': ['.pptx', '.pptm'],
'application/vnd.oasis.opendocument.text': ['.odt'],
'application/vnd.oasis.opendocument.spreadsheet': ['.ods'],
'application/vnd.oasis.opendocument.presentation': ['.odp'],
'application/vnd.ms-outlook': ['.msg'],
'message/rfc822': ['.eml'],
// Image formats
'image/png': ['.png'],
'image/jpeg': ['.jpeg', '.jpg'],
'image/gif': ['.gif'],
'image/webp': ['.webp'],
'image/bmp': ['.bmp'],
'image/svg+xml': ['.svg'],
'image/tiff': ['.tiff', '.tif'],
// Audio formats
'audio/mpeg': ['.mp3'],
'audio/wav': ['.wav'],
'audio/ogg': ['.ogg'],
'audio/flac': ['.flac'],
'audio/aac': ['.aac'],
'audio/x-ms-wma': ['.wma'],
// Video formats
'video/mp4': ['.mp4'],
'video/x-msvideo': ['.avi'],
'video/x-matroska': ['.mkv'],
'video/quicktime': ['.mov'],
'video/webm': ['.webm'],
'video/x-flv': ['.flv'],
'video/x-ms-wmv': ['.wmv']
};
var _default = exports.default = ACCEPTED_UPLOAD_TYPE_MAPPING;