1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

uploading mpegs

This commit is contained in:
Fedor Katurov 2019-10-09 21:17:00 +07:00
parent 60dbb496c4
commit 4a3de2ab01
3 changed files with 13 additions and 19 deletions

View file

@ -1,5 +1,5 @@
import { IFile, IUploadType } from '~/redux/types';
import { IUploadState, IUploadStatus } from './reducer';
import { IUploadStatus } from './reducer';
const prefix = 'UPLOAD.';
@ -62,6 +62,8 @@ export const UPLOAD_TYPES: Record<string, IUploadType> = {
};
export const FILE_MIMES = {
[UPLOAD_TYPES.image]: ['image/jpeg', 'image/jpg', 'image/png'],
[UPLOAD_TYPES.audio]: ['audio/mpeg3', 'audio/mpeg', 'audio/mp3'],
[UPLOAD_TYPES.VIDEO]: [],
[UPLOAD_TYPES.IMAGE]: ['image/jpeg', 'image/jpg', 'image/png'],
[UPLOAD_TYPES.AUDIO]: ['audio/mpeg3', 'audio/mpeg', 'audio/mp3'],
[UPLOAD_TYPES.OTHER]: [],
};