BODY_SIZE_LIMIT erstellt
This commit is contained in:
11
src/hooks.server.ts
Normal file
11
src/hooks.server.ts
Normal 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
|
||||
});
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user