Bug Description
The Resume Analyzer UI states that PDF resumes are supported up to 5MB, but the frontend does not currently validate the uploaded file size.
The application only checks whether the selected file is a PDF. As a result, PDF files larger than 5MB can still be selected and submitted for analysis.
Steps to Reproduce
- Go to the Resume Analyzer page.
- Click the resume upload area.
- Select a PDF file larger than 5MB, or drag and drop one into the upload area.
- Observe that the file is accepted and displayed.
- Click "Analyze Resume".
- Observe that the oversized file is sent for analysis.
Expected Behavior
PDF files larger than 5MB should be rejected before they are submitted for analysis.
The user should see a clear error message such as:
"File size must be less than 5MB."
The oversized file should not be sent to the analysis API.
Actual Behavior
PDF files larger than 5MB are accepted by the frontend even though the upload interface states that the maximum supported size is 5MB.
There is currently no file-size validation in the file selection or drag-and-drop handlers.
Severity
Medium
Screenshots / Screen Recording
No response
Browser
Chrome
Operating System
Windows 11
Additional Context
Hi! I'm a GSSoC 2026 contributor. Kindly add the GSSoC label/badge to this issue if applicable. Thank you!
Bug Description
The Resume Analyzer UI states that PDF resumes are supported up to 5MB, but the frontend does not currently validate the uploaded file size.
The application only checks whether the selected file is a PDF. As a result, PDF files larger than 5MB can still be selected and submitted for analysis.
Steps to Reproduce
Expected Behavior
PDF files larger than 5MB should be rejected before they are submitted for analysis.
The user should see a clear error message such as:
"File size must be less than 5MB."
The oversized file should not be sent to the analysis API.
Actual Behavior
PDF files larger than 5MB are accepted by the frontend even though the upload interface states that the maximum supported size is 5MB.
There is currently no file-size validation in the file selection or drag-and-drop handlers.
Severity
Medium
Screenshots / Screen Recording
No response
Browser
Chrome
Operating System
Windows 11
Additional Context
Hi! I'm a GSSoC 2026 contributor. Kindly add the GSSoC label/badge to this issue if applicable. Thank you!