feat(inscription): payload enfant/photo et limite JSON 15 Mo côté API
- Express/Nest : body parser json et urlencoded à 15 Mo pour les photos base64. - Front : envoi d’inscription parent (authService, payload, étape 3). Made-with: Cursor
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ async function bootstrap() {
|
||||
logger: ['error', 'warn', 'log', 'debug', 'verbose'],
|
||||
});
|
||||
|
||||
// Photos inscription (base64) : limite Express par défaut ~100 ko → 413/500 sans ceci
|
||||
// Inscription (photos base64 dans le JSON) : sans limite > défaut Express (~100 ko) → 413/500 ou corps tronqué.
|
||||
app.useBodyParser('json', { limit: '15mb' });
|
||||
app.useBodyParser('urlencoded', { extended: true, limit: '15mb' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user