Skip to content

Enforce 100MB limit for classifier uploads - #189

Merged
kmandryk merged 2 commits into
developfrom
AI-1239
Jun 11, 2026
Merged

Enforce 100MB limit for classifier uploads#189
kmandryk merged 2 commits into
developfrom
AI-1239

Conversation

@kmandryk

@kmandryk kmandryk commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Add explicit 100MB per-file limit to classifier upload endpoint and handle multer rejections. FilesInterceptor on the classifier upload route now sets limits.fileSize = 100MB and registers a MulterExceptionFilter that maps LIMIT_FILE_SIZE to HTTP 413 (and other Multer errors to 400). Also add a controller-side safeguard that throws PayloadTooLargeException for oversized files, unit tests for the filter and controller behavior, and documentation (CLASSIFIER_DOCUMENT_UPLOAD.md) plus an update to the load-test notes marking the issue fixed.

AI-1239

Add explicit 100MB per-file limit to classifier upload endpoint and handle multer rejections. FilesInterceptor on the classifier upload route now sets limits.fileSize = 100MB and registers a MulterExceptionFilter that maps LIMIT_FILE_SIZE to HTTP 413 (and other Multer errors to 400). Also add a controller-side safeguard that throws PayloadTooLargeException for oversized files, unit tests for the filter and controller behavior, and documentation (CLASSIFIER_DOCUMENT_UPLOAD.md) plus an update to the load-test notes marking the issue fixed.
@kmandryk
kmandryk merged commit 9e9541b into develop Jun 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants