Description
The resume upload endpoint (POST /applications/{interview_id}) currently accepts uploaded files without validating their size. As a result, very large files can be uploaded and processed. Additionally, the file is read into memory before processing, which may increase memory usage for oversized uploads.
Introducing configurable file size limits would help prevent excessive resource consumption and provide a better user experience through clear validation errors.
Steps to Reproduce
- Navigate to the interview application page.
- Upload a very large resume file.
- Observe that the upload is accepted and processed without size validation.
Expected Behavior
- Uploads exceeding a configured size limit are rejected.
- Users receive a clear error message describing the limit.
- File size validation occurs before processing the upload.
Actual Behavior
- No file size validation is performed.
- Files are processed regardless of size.
- Large uploads are read into memory before processing.
Possible Solutions
- Add a configurable maximum upload size setting.
- Validate file size before processing uploads.
- Return a descriptive error response when limits are exceeded.
Description
The resume upload endpoint (
POST /applications/{interview_id}) currently accepts uploaded files without validating their size. As a result, very large files can be uploaded and processed. Additionally, the file is read into memory before processing, which may increase memory usage for oversized uploads.Introducing configurable file size limits would help prevent excessive resource consumption and provide a better user experience through clear validation errors.
Steps to Reproduce
Expected Behavior
Actual Behavior
Possible Solutions