new features

This commit is contained in:
Matthias Hochmeister
2026-03-23 14:08:01 +01:00
parent 3326156b15
commit 1d011ec2df
6 changed files with 22 additions and 27 deletions

View File

@@ -79,7 +79,7 @@ const wartungStorage = multer.diskStorage({
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const uploadWartung: any = multer({
const wartungOptions: any = {
storage: wartungStorage,
fileFilter(_req: any, file: any, cb: any) {
if (ALLOWED_TYPES.includes(file.mimetype)) {
@@ -89,6 +89,9 @@ export const uploadWartung: any = multer({
}
},
limits: { fileSize: 20 * 1024 * 1024 },
});
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const uploadWartung: any = multer(wartungOptions);
export { UPLOAD_DIR, THUMBNAIL_DIR, WARTUNG_DIR };