Svg support for File Upload extension

Could you include svg support for the File Upload extension, please?
We have enabled svg recognition on all of our WP sites and would love to be able to bulk upload.

If you are using the custom dashboard extension you can add the file type with the below code

// add new file types to file uploader
function mycustom_mainwp_file_uploader_allowed_file_types( $types ) {
$types[] = ‘svg’;
return $types;
add_filter(‘mainwp_file_uploader_allowed_file_types’, ‘mycustom_mainwp_file_uploader_allowed_file_types’);

1 Like