Displaying 1 result from an estimated 1 matches for "fileinfo_mime".
2009 Dec 16
1
php and mime type
Hi list,
I'm hoping to find a way via php, preferably without using exec() or
system(), to reliably identify an ogg vorbis file via php.
Using
$fi = new finfo(FILEINFO_MIME);
$mime_type = $fi->buffer(file_get_contents($upload));
results in 'application/ogg'
My site accepts vouchers for herpetology records, but only image and
audio. I do not wish to support video vouchers, but if an Ogg Theora
file is uploaded, it also produces the mime type 'applica...