mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-29 03:40:57 +00:00
feat: add support for additional document formats and video file types to DocumentRequirementEditorDrawer
This commit is contained in:
@@ -47,6 +47,19 @@ const MIME_OPTIONS = [
|
||||
value: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
label: 'Word (.docx)',
|
||||
},
|
||||
{ value: 'application/vnd.ms-excel', label: 'Excel (.xls)' },
|
||||
{
|
||||
value: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
label: 'Excel (.xlsx)',
|
||||
},
|
||||
{ value: 'text/csv', label: 'CSV' },
|
||||
{ value: 'text/plain', label: 'Plain text (.txt)' },
|
||||
// Video is measured in hundreds of megabytes, not the 5 MB a slot starts
|
||||
// with: raise "Max file size" on any slot that accepts one.
|
||||
{ value: 'video/mp4', label: 'Video (.mp4)' },
|
||||
{ value: 'video/quicktime', label: 'Video (.mov, iPhone)' },
|
||||
{ value: 'video/webm', label: 'Video (.webm)' },
|
||||
{ value: 'video/x-msvideo', label: 'Video (.avi)' },
|
||||
];
|
||||
|
||||
/** What a new slot accepts until someone widens it. */
|
||||
|
||||
Reference in New Issue
Block a user