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

added webp support

This commit is contained in:
Fedor Katurov 2022-08-09 17:36:29 +07:00
parent 69b51f2883
commit a37e389fdf
2 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View file

@ -5,4 +5,5 @@
/build
/.next
/.vscode
/.history
/.history
.DS_Store

View file

@ -38,7 +38,13 @@ export enum UploadType {
export const FILE_MIMES: Record<UploadType, string[]> = {
[UploadType.Video]: [],
[UploadType.Image]: ['image/jpeg', 'image/jpg', 'image/png', 'image/svg+xml'],
[UploadType.Image]: [
'image/jpeg',
'image/jpg',
'image/png',
'image/svg+xml',
'image/webp',
],
[UploadType.Audio]: ['audio/mpeg3', 'audio/mpeg', 'audio/mp3'],
[UploadType.Other]: [],
};