Skip to main content

File extensions management

Is there any way how to manage supported file extensions inside of FC? For example JFIF format from Facebook is not possible to upload. Any snippet to fix it? Any possibility in future have own file extensions management system implemented into FC?

Thomas Oates

There is a filter named fluent_community/support_attachment_types that looks like it allows you to modify the list of image types allowed.

Drive Zone

Thomas OatesΒ I think this hook is primary for restrictions to file types not adding new ones.

Thomas Oates

Try this. Seems like WP doesn't support JFIF format by default. Works for me when adding this.

add_filter('mime_types', 'add_jfif_files');
function add_jfif_files($mimes){
    $mimes['jfif'] = "image/jpeg";
    return $mimes;
}

Drive Zone

Thomas OatesΒ will try, thank you!