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

Merge pull request #128 from muerwre/feature/svg-support

added webp support
This commit is contained in:
muerwre 2022-08-09 17:55:33 +07:00 committed by GitHub
commit fe3db608d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/.next
/.vscode
/.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]: [],
};