mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
file type detection on upload
This commit is contained in:
parent
219d05f8ba
commit
60dbb496c4
3 changed files with 24 additions and 6 deletions
|
@ -60,3 +60,8 @@ export const UPLOAD_TYPES: Record<string, IUploadType> = {
|
|||
VIDEO: 'video',
|
||||
OTHER: 'other',
|
||||
};
|
||||
|
||||
export const FILE_MIMES = {
|
||||
[UPLOAD_TYPES.image]: ['image/jpeg', 'image/jpg', 'image/png'],
|
||||
[UPLOAD_TYPES.audio]: ['audio/mpeg3', 'audio/mpeg', 'audio/mp3'],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue