WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to upload a excel file to wordpress, i am getting error:

"Specified file failed upload test.", .xls format file cannot be uploaded??

How do get arround it?

share|improve this question

You need to add the mime type to the whitelist of allowed file types.

Assuming this one still works, you can go the plugin route using.

Alternatively if you want to add your own mimes in code form, here's an example.

add_filter( 'upload_mimes', 'your_custom_mimes' );
function your_custom_mimes( $mimes ) {
    $mimes['extensionhere'] = 'mimetype/goes-here';
    return $mimes;

Here's a few helpful links to help with mime types.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.