Description:
Some files are generated or uploaded with uppercase extensions (e.g., .CSV), causing Legale to reject them.
The system must automatically convert any uppercase or mixed-case extensions to lowercase (.CSV → .csv) in all scenarios — including file generation, upload, and validation.
Proposed Solution:
-
Detect files with
.CSVor mixed-case extensions (e.g.,.Csv,.CsV). -
Automatically rename the file extension to
.csvbefore saving or processing. -
Keep the current validation logic unchanged.
Objective:
Ensure consistent file handling and prevent errors caused by case-sensitive extensions.