1
0
Fork 0
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:
Fedor Katurov 2019-10-09 21:06:14 +07:00
parent 219d05f8ba
commit 60dbb496c4
3 changed files with 24 additions and 6 deletions

View file

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