feat(file): allow webp on upload
This commit is contained in:
@ -51,6 +51,7 @@ export class FileController {
|
|||||||
.valid(
|
.valid(
|
||||||
"image/jpeg",
|
"image/jpeg",
|
||||||
"image/png",
|
"image/png",
|
||||||
|
"image/webp",
|
||||||
"application/pdf",
|
"application/pdf",
|
||||||
"application/vnd.ms-excel", // ✅ .xls
|
"application/vnd.ms-excel", // ✅ .xls
|
||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", // ✅ .xlsx
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", // ✅ .xlsx
|
||||||
@ -136,6 +137,7 @@ export class FileController {
|
|||||||
jpg: "image/jpeg",
|
jpg: "image/jpeg",
|
||||||
jpeg: "image/jpeg",
|
jpeg: "image/jpeg",
|
||||||
png: "image/png",
|
png: "image/png",
|
||||||
|
webp: "image/webp",
|
||||||
gif: "image/gif",
|
gif: "image/gif",
|
||||||
doc: "application/msword",
|
doc: "application/msword",
|
||||||
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
|
|||||||
Reference in New Issue
Block a user