getting different mime type for exe file in php

Solution:
application/x-dosexec
is actually a subtype ofapplication/x-msdownload
, specifically having the.exe
glob.
You don't need to check for all possible mime types, just check if it belongs to the parent executable mime type. See how it's done with mediatype here.
Ref: Summary of application/x-dosexec from webarchive.org.uk
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: using $this when not in object context
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.