feat: restrict files

This commit is contained in:
Nevo David 2025-07-28 22:46:57 +07:00
parent 5459e466bd
commit 0ff50a0565
1 changed files with 0 additions and 8 deletions

View File

@ -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];
});