Skip to content

fix: add PDF validation for file picker uploads#72

Open
SunnyAgrwl05 wants to merge 1 commit into
sunilkumar2170:mainfrom
SunnyAgrwl05:fix/resume-dropzone-pdf-validation
Open

fix: add PDF validation for file picker uploads#72
SunnyAgrwl05 wants to merge 1 commit into
sunilkumar2170:mainfrom
SunnyAgrwl05:fix/resume-dropzone-pdf-validation

Conversation

@SunnyAgrwl05

Copy link
Copy Markdown

Description

This PR fixes the file validation inconsistency in ResumeDropzone.

Changes Made

  • Added PDF validation for files selected through the file picker.
  • Ensured non-PDF files trigger the existing hasNonPdfFile error state.
  • Kept drag-and-drop and file picker validation behavior consistent.

Testing

  • ✅ Selected a PDF file via file picker → imported successfully.
  • ✅ Selected a JPEG/non-PDF file via file picker → displayed "Only pdf file is supported".
  • ✅ Existing drag-and-drop validation continues to work.

Fixes #67

@SunnyAgrwl05

Copy link
Copy Markdown
Author

Hi @saqibxjaved,

I have fixed this issue and submitted a PR.

PR: #72

The fix adds PDF validation for file picker uploads and ensures non-PDF files trigger the existing error state, keeping drag-and-drop and file picker behavior consistent.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Missing file format validation in ResumeDropzone file input handler

1 participant