WordPress Code Snippet

Allow Additional File Types to be Uploaded in WordPress

For security reasons WordPress allows to only upload commonly used file types. Allowed file types are listed on this page. Unfortunately the list is not up to date.

This code snipped adds a few more file types. You can add the file types you need just the same. To add a file type you need its file extension plus the MIME type. Take a look at this list of MIME types.

Share this page: