feat: restrict files
This commit is contained in:
parent
5459e466bd
commit
0ff50a0565
|
|
@ -93,22 +93,14 @@ export function useUppyUploader(props: {
|
|||
'image/jpeg',
|
||||
'image/jpg',
|
||||
'image/gif',
|
||||
'image/webp',
|
||||
'image/svg+xml',
|
||||
];
|
||||
}
|
||||
if (type === 'video/*') {
|
||||
return [
|
||||
'video/mp4',
|
||||
'video/mpeg',
|
||||
'video/quicktime',
|
||||
'video/x-msvideo',
|
||||
'video/webm',
|
||||
];
|
||||
}
|
||||
if (type === 'audio/*') {
|
||||
return ['audio/mpeg', 'audio/wav', 'audio/ogg', 'audio/mp3'];
|
||||
}
|
||||
return [type];
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue