A
A
aazon2010-10-13 12:37:06
PHP
aazon, 2010-10-13 12:37:06

How can I add a file type to the list of supported mime_content_type functions?

For example, there is a sample.mkv file.
If we ask php about the mime-type of this file, we get "application/octet-stream". And the desired correct answer is " video/x-matroska ".
Is there some config in php itself, or in the OS, or in the web server, in which you can add the necessary matching lines?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lafayette, 2010-10-13
@lafayette

apache\conf\mime.types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question