Skip to content

[Bug]: Resume Analyzer accepts PDF files larger than 5MB #1865

Description

@kumud-05

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

  1. Go to the Resume Analyzer page.
  2. Click the resume upload area.
  3. Select a PDF file larger than 5MB, or drag and drop one into the upload area.
  4. Observe that the file is accepted and displayed.
  5. Click "Analyze Resume".
  6. 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!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingclaimedThis issue has been claimed by a contributor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions