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:
parent
69b51f2883
commit
a37e389fdf
2 changed files with 9 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -5,4 +5,5 @@
|
|||
/build
|
||||
/.next
|
||||
/.vscode
|
||||
/.history
|
||||
/.history
|
||||
.DS_Store
|
|
@ -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]: [],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue