Sorry, this file type is not permitted for security reasons?

Wordpress media library is a standard media library. Users are allowed a lot's of file types using wordpress media library. Let's know the file types allowed by wordpress in media library.

Images:
  1. jpg
  2. jpeg
  3. png
  4. gif
  5. ico
Documents:
  1. .pdf (Portable Document Format; Adobe Acrobat)
  2. .doc.docx (Microsoft Word Document)
  3. .ppt.pptx.pps.ppsx (Microsoft PowerPoint Presentation)
  4. .odt (OpenDocument Text Document)
  5. .psd (Adobe Photoshop Document)
Audio :
  1. .mp3
  2. .m4a
  3. .ogg
  4. .wav
Video:
  1. .mp4.m4v (MPEG-4)
  2. .mov (QuickTime)
  3. .wmv (Windows Media Video)
  4. .avi
  5. .mpg
  6. .ogv (Ogg)
  7. .3gp (3GPP)
  8. .3g2 (3GPP2)

1. This all is not enough for our daily perform jobs. Let's know how to allow all file types to upload in wordpress.


⇒ Goto ⇨cpanel⇨ open file manager. Then go to your ⇨public html directory where your wordpress files are located.
⇒ If you are using FTP then open ⇨public html directory where your wordpress files are located.
⇒ Find the ⇨wp-config.php file and edit the file.
⇒ After define( 'WP_DEBUG', true );
    paste define( 'ALLOW_UNFILTERED_UPLOADS', true);
⇒ Save your file. That's it, you have done.

2. Allow file types using wordpress plugin-

1. Go to wordpress ⇨Dashboard ⇨Plugins⇨ Add New ⇨Search (WP Add Mime Types)
2. ⇨Install and ⇨Activate the plugin.
3. Now go to ⇨SettingsMedia Type Settings.
4. In the Add value box add your file type value.
    Suppose I need .txt and .psd file type to allow in media uploader. ( Add)
    kmz = application/vnd.google-earth.kml+xml
    txt = text/plain
    psd = application/octet-stream
That's it. Now enjoy:)