Removed few mime types but that blocked all types
-
I used the following to block users from uploading videos:
add_filter(‘upload_mimes’, ‘remove_mime_types’);
function remove_mime_types($mimes) {
unset($mimes[‘mp4’]);
unset($mimes[‘wmv’]);
unset($mimes[‘avi’]);
}>>> but it blocked all types not just these. am i missing something ?
or do you know any alternative way to block uploading videos?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Removed few mime types but that blocked all types’ is closed to new replies.