Skip to content

Add file size validation for resume uploads #135

@Shreya-nipunge

Description

@Shreya-nipunge

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

  1. Navigate to the interview application page.
  2. Upload a very large resume file.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackendfrontendReact / TypeScript frontendgssoc2026GSSoC 2026 contribution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions