Skip to content

Feat/case filing document upload preview - #1642

Open
Nareshkumawat-star wants to merge 8 commits into
viru0909-dev:mainfrom
Nareshkumawat-star:feat/case-filing-document-upload-preview
Open

Feat/case filing document upload preview#1642
Nareshkumawat-star wants to merge 8 commits into
viru0909-dev:mainfrom
Nareshkumawat-star:feat/case-filing-document-upload-preview

Conversation

@Nareshkumawat-star

Copy link
Copy Markdown

Description

Enables litigants to upload supporting documentary evidence (FIR copies, affidavits, property papers, contracts) during case filing and view uploaded documents using an in-browser PDF/Image previewer.

Type of Change

Key Changes Made

  1. Backend Case Document Endpoint:
    • Added POST /api/v1/cases/{id}/documents endpoint in CaseManagementController.java to attach uploaded files directly to cases.
    • Enforces 10MB file size limits and PDF/JPG/PNG file validation.
  2. Frontend File Upload Validations:
    • Updated FileUnifiedPage.jsx to enforce max 5 files, 10MB per file size limit, and supported document formats.
  3. In-Browser Document Preview:
    • Updated CaseDetailPage.jsx to render a Preview button with an embedded PDF viewer iframe and Image Lightbox modal for JPG/PNG files.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @Nareshkumawat-star, thanks for contributing to Nyay Setu! 🎉

I have automatically:

  • 👤 Assigned this PR to you.
  • 🏷️ Applied the gssoc:approved label.

Our workflows will now analyze your changes to classify:

  • 📈 PR Difficulty: level:*
  • 🧩 PR Type: type:*
  • 🌟 PR Quality: quality:*

Tip

Ensure your PR description references the issue it resolves (e.g. Closes #123). This allows the bot to inherit any additional labels from that issue!

Happy coding! 🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add case document upload and preview for litigants (PDF/image support)

1 participant