Filter Reference: geodir_allowed_mime_types
Summary
Filter the list of mime types and file extensions allowed for file upload.
Package
GeoDirectory
Parameters
- $geodir_allowed_mime_types
- (array) (required) and file extensions.
- Default: None
Change Log
Since: 1.4.7
Used by
geodirectory-functions/general_functions.php: geodir_allowed_mime_types() [Line: 4519]
Source Code
return apply_filters( 'geodir_allowed_mime_types', array( 'Image' => array( // Image formats. 'jpg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp', 'ico' => 'image/x-icon', ), 'Video' => array( // Video formats. 'asf' => 'video/x-ms-asf', 'avi' => 'video/avi', 'flv' => 'video/x-flv', 'mkv' => 'video/x-matroska', 'mp4' => 'video/mp4', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'wmv' => 'video/x-ms-wmv', '3gp' => 'video/3gpp', ), 'Audio' => array( // Audio formats. 'ogg' => 'audio/ogg', 'mp3' => 'audio/mpeg', 'wav' => 'audio/wav', 'wma' => 'audio/x-ms-wma', ), 'Text' => array( // Text formats. 'css' => 'text/css', 'csv' => 'text/csv', 'htm' => 'text/html', 'html' => 'text/html', 'txt' => 'text/plain', 'rtx' => 'text/richtext', 'vtt' => 'text/vtt', ), 'Application' => array( // Application formats. 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'exe' => 'application/x-msdownload', 'js' => 'application/javascript', 'odt' => 'application/vnd.oasis.opendocument.text', 'pdf' => 'application/pdf', 'pot' => 'application/vnd.ms-powerpoint', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.ms-powerpoint', 'psd' => 'application/octet-stream', 'rar' => 'application/rar', 'rtf' => 'application/rtf', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'xls' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'zip' => 'application/zip', 'gpx' => 'application/gpx', ) ) );