Skip to content

Bug: Missing file format validation in ResumeDropzone file input handler #67

@saqibxjaved

Description

@saqibxjaved

📋 Description

The ResumeDropzone component has inconsistent file validation. It validates file types when files are dragged and dropped, but fails to validate when files are selected through the file picker.

🐛 The Problem

Current Behavior:

  • Drag-and-drop: ✅ Validates file is PDF, shows error if not
  • File input picker: ❌ No validation, accepts any file type

Impact:

  • Users can select non-PDF files via the file picker
  • App attempts to parse non-PDF files, causing silent failures
  • The error state (hasNonPdfFile) is never triggered for file input selections

📍 Location

File: src/app/components/ResumeDropzone.tsx

🧪 Testing

  • Select a .pdf file via file picker → should import successfully
  • Select a non-PDF file (.txt, .docx, etc.) → should show "Only pdf file is supported" error

📌 Type

  • bug: Missing file format validation
  • good first issue
  • GSSoC-2026

CAN I GET THE ISSUE ASSIGNED?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions