mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
Added support for .ico files
This commit is contained in:
parent
089ace562a
commit
8941f8f2f4
6 changed files with 17 additions and 5 deletions
|
@ -14,7 +14,7 @@ const storage = multer.diskStorage({
|
|||
},
|
||||
});
|
||||
|
||||
const supportedTypes = ['jpg', 'jpeg', 'png', 'svg', 'svg+xml'];
|
||||
const supportedTypes = ['jpg', 'jpeg', 'png', 'svg', 'svg+xml', 'x-icon'];
|
||||
|
||||
const fileFilter = (req, file, cb) => {
|
||||
if (supportedTypes.includes(file.mimetype.split('/')[1])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue