Plugin Support
Towhid
(@cryptex_vinci)
Hi @yokuraki
Insert this snippet in your themes functions.php
add_filter( 'upload_mimes', 'yokuraki_extend_upload_mimes' );
if( ! function_exists( 'yokuraki_extend_upload_mimes' ) ) {
function yokuraki_extend_upload_mimes( $mimes ) {
$mimes = array_merge(
$mimes,
array(
'docx' => 'text/docx'
)
);
return $mimes;
}
}
Thanks
Hi Asif,
Thank you for your quickest reply. I add your code at the end of functions.php, however, the same error message still comes up at
https://bridgesystem16.vinahosting.com/register/
Plugin Support
Towhid
(@cryptex_vinci)
Hi
Check this out:
function um_add_more_allowed_file_types( $allowed_types ) {
if( is_array( $allowed_types ) ) {
$allowed_types = array_merge( array(
'docx' => '.docx - docx Text',
), $allowed_types );
}
return $allowed_types;
}
add_action( 'um_allowed_file_types', 'um_add_more_allowed_file_types' );
Thanks
Thank you but it still does not work. The error message comes up at the upload splash screen.
Hi,
I’m closing this ticket temporarily due to inactivity. If you’re still having an issue/concern, just reply to this thread and mark this as “Not resolved” so we can continue assisting you.
Regards,