mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added webp support
This commit is contained in:
parent
69b51f2883
commit
a37e389fdf
2 changed files with 9 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@
|
||||||
/.next
|
/.next
|
||||||
/.vscode
|
/.vscode
|
||||||
/.history
|
/.history
|
||||||
|
.DS_Store
|
|
@ -38,7 +38,13 @@ export enum UploadType {
|
||||||
|
|
||||||
export const FILE_MIMES: Record<UploadType, string[]> = {
|
export const FILE_MIMES: Record<UploadType, string[]> = {
|
||||||
[UploadType.Video]: [],
|
[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.Audio]: ['audio/mpeg3', 'audio/mpeg', 'audio/mp3'],
|
||||||
[UploadType.Other]: [],
|
[UploadType.Other]: [],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue