Code: Select all
$allowed = array ('image/gif', 'image/jpeg', 'image/jpg', 'image/pjpeg', 'video/quicktime', 'video/x-quicktime', 'video/mpeg', 'video/x-mpeg', 'video/x-msvideo', 'video/mp4', 'video/x-sgi-movie', 'video/x-ms-asf', 'audio/x-ms-wmv', 'video/x-ms-wm', 'video/x-ms-wmx', 'video/x-ms-wmv', 'video/x-ms-wvx');
if (in_array($_FILES[$filename]['type'], $allowed)) {Any help or insight into this would be great. I'm on a Linux server. Thanks in advance!!!
Brian