How to fix "Sorry, you are not allowed to upload this file type." error in WordPress

WordPress allows uploads of the following file extensions by default:

Images: .jpeg, .jpg, .png, .gif, .ico
Documents: .pdf, .doc, .docx, .ppt, .pptx, .pps, .ppsx, .odt, .xls, .xlsx, .psd
Audio: .mp3, .m4a, .ogg, .wav
Video: .mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, .3g2

To upload a file extension other than the above, you will need to add the following code to your wp-config.php file:

define('ALLOW_UNFILTERED_UPLOADS', true);

For security reasons we would recommend that you remove the above line from your wp-config.php file once you have completed the file upload.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix FTP connection problems

The problem you may be having is in getting your FTP application to connect to your web space.We...

How to upgrade from Plesk 9 to Plesk 11

If your web hosting service is a Plesk 9 account and you wish to upgrade to Plesk 11 then do not...

Getting BadMailFrom Error: Cannot Send Email

Re: BadMailFrom Spam TriggerIf you are getting BadMailFrom message when trying to send email then...

Email - Configuring Thunderbird

Thunderbird is free email software for Mac OS X and Windows.This walkthrough will show you how to...

Email - Configuring Outlook

How to setup a POP / IMAP account in Outlook:1. Open Microsoft Outlook™2. Choose Tools from the...