Project

General

Profile

Actions

dev #1384

open

Show proper Error messages for file validation

Added by Ayat Rahman over 1 year ago. Updated over 1 year ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
Start date:
12/06/2024
Due date:
12/06/2024 (about 16 months late)
% Done:

100%

Estimated time:
3:00 h
Spent time:

Description

Description:
Currently, the application does not display user-friendly error messages for various file validation issues. For example, when a file exceeds the size limit, the system should show a clear message indicating the issue, such as the maximum allowed file size.

Steps to reproduce:

  1. Upload a file that exceeds the maximum allowed size.
  2. Observe the error message displayed.

Expected behavior:
The error message should be clear and user-friendly, specifying the reason for the error (e.g., "File size exceeds the limit of {size} MB.").

Actual behavior:
The error messages are vague or do not provide sufficient information for the user to understand the issue.

Suggested fix:
Implement the following error messages for common file validation errors:

  • For file size: "Maximum file size exceeded (limit: {size} MB)"
  • For invalid file format: "Only PDF files are allowed!"
  • For corrupted or password-protected files: "Corrupted/Protected PDFs cannot be compressed!"

These two issues should help track the bugs and improvements related to error messages in the application. Let me know if you need further adjustments or details!

Actions #1

Updated by Ayat Rahman over 1 year ago

  • Description updated (diff)
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF