Project

General

Profile

dev #1384

Updated by Ayat Rahman over 1 year ago

 
 **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!

Back