Issue Bug Closed

#107198Uploading EXE files fails MIME Resource Integrity

Garvin Hicking 08/03/25, 19:07 updated 12/02/25, 13:57

Description

EXE files have a plethora of valid mime types:

application/octet-stream
application/x-dosexec
application/x-msdos-program
application/x-msdownload
application/x-mz-executable
application/x-wine-extension-mz
application/x-executable
application/binary
application/x-ms-application
application/dos-exe
application/x-ms-dos-executable
application/vnd.microsoft.portable-executable
application/x-winexe

mime-db/db.json only knows: “application/octet-stream”, “application/x-msdos-program”, “application/x-msdownload”

So we have to map all other possible .exe types to the mime-db default “application/x-msdos-program”.

Also: PHP detects exe as “application/vnd.microsoft.portable-executable” (PHP 8.4+) or “application/x-dosexec” (PHP < 8.4)

Reviews 2

History 420

  1. Gerrit Code Review pushed patch set 11 for main to change 90226 status New Under Review <span data-processor="relativetime" data-value="2025-08-03T19:27:15+00:00" > 08/03/25, 19:27 </span>

  2. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-10-29T06:40:08+00:00" > 10/29/25, 06:40 </span>

    Applied in changeset commit:7e9d1788df8c62bb685785ea495911ff837366ed.