Is there a way I can get the MIME type (text/plain for example) of a file? I am outputting a path to an icon for plain text, binary, etc., but I have to check each file's extension do I was wondering if there was something to do that.
Printable View
Is there a way I can get the MIME type (text/plain for example) of a file? I am outputting a path to an icon for plain text, binary, etc., but I have to check each file's extension do I was wondering if there was something to do that.
to check the extension?
i posted some code for sail in another thread that might be of some use?
don't think so sorry man
Maybe this will help
http://www.php.net/manual/en/features.file-upload.php