Answer by Sjeiti for How can I enable uploading excel files?
The upload_mimes hook is correct, the mime-type is not (anymore?).The following is working for WP 5.8.2function my_upload_mimes( $mimes ) { return array_merge($mimes, array ('xls' =>...
View ArticleAnswer by Sayed Mohd Ali for How can I enable uploading excel files?
I tried the above solution but didn't work for me in the endI allowed all the mime types via wp-config.phpdefine( 'ALLOW_UNFILTERED_UPLOADS', true );You can create your custom restriction when the file...
View ArticleAnswer by sandrodz for How can I enable uploading excel files?
I think the proper filter would be mime_types found here.function wpse294198_mime_types( $mimes ) { $mimes['xls|xlsx'] = 'application/vnd.ms-excel'; return $mimes;}add_filter( 'mime_types',...
View ArticleHow can I enable uploading excel files?
I have an old school user who wants to upload an excel file to our Wordpress page.Basically, Wordpress does not allow this.Upon https://gist.github.com/robwent/e3bf00bafe7a00bc3d0c4dceabde4fcaI put the...
View Article