Issue Bug Closed

#106775Missing mime type for .exe

Sebastien Convers 05/27/25, 07:19 updated 12/02/25, 13:59

Description

Hello,

After security update 13.4.12, my editor cannot upload anymore his .exe files.

I added “exe” to “miscfile_ext”

But if enforceFileExtensionMimeTypeConsistency is activated, upload fail because the mime type of his file is “application/x-dosexec”

Is it possible to add this mime type to MimeTypeCollection for .exe?

I would like to keep enforceFileExtensionMimeTypeConsistency on…

Thanks

Reviews 3

History 710

  1. Oliver Hader commented <span data-processor="relativetime" data-value="2025-05-27T08:11:48+00:00" > 05/27/25, 08:11 </span>

    Doing this would be allowed using the patch of issue #106735 which allows to define a custom mapping:
    https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.4.x/Important-106735-FileMIMETypeCompatiblityMapping.html#important-106735-file-mime-type-compatiblity-mapping

    Example for your use-case might be:

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['mimeTypeCompatibility']['application/x-dosexec']['exe'] = 'application/x-msdos-program';

    The upgrade wizard of #106735 would change all existing occurrences to application/x-msdos-program and would also use that mime-type for new uploads.

  2. Gerrit Code Review pushed patch set 1 for main to change 89559 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2025-05-27T10:48:33+00:00" > 05/27/25, 10:48 </span>

  3. Benjamin Franzke commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-05-27T11:50:07+00:00" > 05/27/25, 11:50 </span>

    Applied in changeset commit:c1369ef21218814884570941100efbb475d53449.