Merge pull request #17702 from Scroody/virtual-backgound-accepts-webp

feat (html5): Virtual backgrounds now accepts webp format
This commit is contained in:
Ramón Souza 2023-05-15 17:06:41 -03:00 committed by GitHub
commit af23ce542e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import logger from '/imports/startup/client/logger';
const MIME_TYPES_ALLOWED = ['image/png', 'image/jpeg'];
const MIME_TYPES_ALLOWED = ['image/png', 'image/jpeg', 'image/webp'];
const MAX_FILE_SIZE = 5000; // KBytes
const withObjectStore = ({

View File

@ -13,6 +13,7 @@ export const PDF = 'application/pdf';
export const JPEG = 'image/jpeg';
export const PNG = 'image/png';
export const SVG = 'image/svg+xml';
export const WEBP = 'image/webp';
export const UPLOAD_SUPORTED = [
XLS,

View File

@ -745,6 +745,8 @@ public:
mime: image/jpeg
- extension: .png
mime: image/png
- extension: .webp
mime: image/webp
selectRandomUser:
enabled: true
countdown: false