Skip to content

Conversation

@smitdodiya
Copy link
Member

@smitdodiya smitdodiya commented Jan 6, 2026

Issue:
Uploading large quiz files causes unexpected errors instead of showing a clear validation message. (#59 )

Problem:
When a file larger than the allowed size is uploaded, the request may fail with 413 Request Entity Too Large and CORS-related errors. This prevents users from receiving a friendly and understandable error message for oversized file uploads.

What this PR does:

  • Sets a 15 MB request body limit in the Fiber server.
  • Adds a custom error message
    "The file is too large to upload. Please select a smaller file."
  • Preserves the existing 1 MB application-level validation for quiz CSV uploads, ensuring consistent frontend error handling.
Screenshot From 2026-01-06 12-05-27

@khushijoshi1234 khushijoshi1234 merged commit 1a140e6 into Improwised:main Jan 12, 2026
4 checks passed
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.

3 participants