mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
flappy Bird
This commit is contained in:
parent
d036ccf13b
commit
f5bfdf48a2
13 changed files with 397 additions and 67 deletions
|
@ -5,7 +5,7 @@ import { Request, Response, NextFunction } from "express";
|
|||
// Configure multer to store files in memory
|
||||
const multerInstance = multer({
|
||||
storage: multer.memoryStorage(),
|
||||
limits: { fileSize: 5 * 1024 * 1024 }, // Limit file size to 5 MB
|
||||
limits: { fileSize: 30 * 1024 * 1024 }, // Limit file size to 30 MB
|
||||
});
|
||||
|
||||
export const upload = (req: Request, res: Response, next: NextFunction) => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes";
|
|||
|
||||
const multerInstance = multer({
|
||||
storage: multer.memoryStorage(),
|
||||
limits: { fileSize: 5 * 1024 * 1024 }, // 5 MB
|
||||
limits: { fileSize: 30 * 1024 * 1024 }, // 30 MB
|
||||
});
|
||||
|
||||
export const upload = (req: Request, res: Response, next: NextFunction) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue