Quantcast
Channel: How can I enable uploading excel files? - WordPress Development Stack Exchange
Browsing all 4 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

How 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
Browsing all 4 articles
Browse latest View live


Latest Images