We could use libmagic to do this, but there are security concerns.
We could, alternatively, just serve everything as an application/octet-stream and let the UA deal with it (perhaps allowing the reader to specify a file extension to help the UA guess?).
We could use libmagic to do this, but there are security concerns.
We could, alternatively, just serve everything as an
application/octet-stream
and let the UA deal with it (perhaps allowing the reader to specify a file extension to help the UA guess?).