BODY_SIZE_LIMIT erstellt

This commit is contained in:
titver968
2025-04-25 08:14:39 +02:00
parent 7cf57dde9b
commit ac865ddd37
7 changed files with 30 additions and 9 deletions

11
src/hooks.server.ts Normal file
View File

@@ -0,0 +1,11 @@
import { sequence } from '@sveltejs/kit/hooks';
import { json } from '@sveltejs/kit';
export const handle = sequence(
async ({ event, resolve }) => {
return resolve(event, {
// Erhöhe das Limit hier (z.B. auf 1 GB = 20 * 1024 * 1024)
maxBodySize: 1024 * 1024 * 1024
});
}
);