lol
This commit is contained in:
parent
b36b36b372
commit
b8b84a8902
@ -21,7 +21,7 @@ const storage = multer.diskStorage({
|
|||||||
|
|
||||||
const allowedMimeTypes = new Set(["image/jpeg", "image/png", "image/jpg"]);
|
const allowedMimeTypes = new Set(["image/jpeg", "image/png", "image/jpg"]);
|
||||||
|
|
||||||
export const upload = multer({
|
const upload = multer({
|
||||||
storage,
|
storage,
|
||||||
limits: { fileSize: 5 * 1024 * 1024 },
|
limits: { fileSize: 5 * 1024 * 1024 },
|
||||||
fileFilter: (req, file, cb) => {
|
fileFilter: (req, file, cb) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user