Hi,

Branislav Blaskovic <branis...@blaskovic.sk> wrote:
> I would detect file type by mime - not by file extension (function
> is_music_file()). But that's not so important. I just remembered that we were
> punished at the school when we did this :)

How do you figure out mime type from a file?  I understand if a server
gives you a HTTP header, but if it is a static file on disk, I don't
think it is guaranteed to have a mime type as an xattr.  Is there a
standard way to store/determine mime type?

yours,
Bobby

Reply via email to