#106735Upload of csv files not possible after security update
Description
After today’s security update to 12.4.31, the upload of simple CSV files no longer works because the MIMI type validation has been tightened.
Error:
Upload of file “test.csv” failed!
Mime-type “text/plain” not allowed for file extension “csv”
Explicitly allowing this MIME type with the following configuration prevents the second of the two error messages, but still does not allow the upload.
‘SYS’ => [
‘FileInfo’ => [
‘fileExtensionToMimeType’ => [
‘csv’ => [‘text/plain’],
],
],
],
The problem is that the standard MIME type of CSV files is not text/csv but text/plain.
Reviews 23
- 12.4 90651[TASK] Extend allowed list of uploadable text/misc files
- 13.4 90650[TASK] Extend allowed list of uploadable text/misc files
- main 90575[TASK] Extend allowed list of uploadable text/misc files
- 12.4 90596[TASK] Add more common MIME type replacements and file extensions
- 13.4 90595[TASK] Add more common MIME type replacements and file extensions
- main 89987[TASK] Add more common MIME type replacements and file extensions
- main 90577[TASK] Extend allowed list of uploadable `mediafile_ext` files
- 12.4 89879[BUGFIX] Improve allowed MIME type handling, add vcf handling
- 13.4 89878[BUGFIX] Improve allowed MIME type handling, add vcf handling
- main 89779[BUGFIX] Improve allowed MIME type handling, add vcf handling
- 12.4 89677[BUGFIX] Evaluate mixed-case file extensions in mime_type migration
- 13.4 89676[BUGFIX] Evaluate mixed-case file extensions in mime_type migration
- main 89603[BUGFIX] Evaluate mixed-case file extensions in mime_type migration
- 12.4 89680[BUGFIX] Fix upload of encrypted Office Open XML documents
- 13.4 89679[BUGFIX] Fix upload of encrypted Office Open XML documents
- main 89678[BUGFIX] Fix upload of encrypted Office Open XML documents
- main 89559[BUGFIX] Add mime-type compatiblity mapping for .exe
- 12.4 89561[BUGFIX] Add mime-type compatiblity mapping for .exe
- 13.4 89560[BUGFIX] Add mime-type compatiblity mapping for .exe
- 12.4 89553[BUGFIX] Fix file uploads where concrete MIME types can't be determined
- 13.4 89552[BUGFIX] Fix file uploads where concrete MIME types can't be determined
- main 89519[BUGFIX] Fix file uploads where concrete MIME types can't be determined
- main 89492[TASK] Update MimeTypeCollection for .csv => text/plain compatibility
Related issues 6
- Bug #106775Missing mime type for .exe
- Bug #106794MimeTypeCompatibilityTypeGuesser breaks FE on AWS S3 websites
- Bug #106805SysFileMimeTypeMigration fails if extension in uppercase
- Bug #106819Upload of password protected office documents not possible - Mime-type "application/encrypted" not allowed for file extension "docx".
- Bug #106916Allow MIME type 'text/vcard' for .vcf file uploads in file list
- Task #107033Add more mime type mappings for common files