mercredi 20 décembre 2017

How to detect file mime by file header on Nginx?

I want to return a file stored without extension name.
But nginx returns it with application/octet-stream.

I want return a file with correct mime, based on file header but not extension name, like using file --mime-type -b <filename>

How should I do?




Aucun commentaire:

Enregistrer un commentaire