General Topics

It’s All About (The) Upload Additional File Types

In this article, you will read how to upload additional file types in WordPress? Due to security reasons, WordPress does not give permission to upload additional file type. However, if you want to upload additional file types in WordPress. Then give permission manually to upload restricted files.

WordPress is an open source software which gives permission to add codes which are suitable for him. So today we will add code in our function.php file of the theme. After it, you will able to upload additional file types in WordPress.

By default, you can upload common formats of images, audio, video and documents. Now after following this article your will rid of this error “sorry, this file type is not permitted for security reasons”. You can also see the error in the below-uploaded image:

wordpress-media-library

Upload Additional File Types in WordPress

Now just see file types allowed for upload in WordPress site. These are the file types which are allowed by WordPress and these extensions also can find by visiting WordPress.org file.

Images

.jpeg
.jpg
.gif
.png
.ico

Documents

.pdf
.ppt,.pptx,.pps, .ppsx
.doc, .docx
.xls, .xlsx
.odt
.psd

Audio

.mp3
.m4a
.ogg
.wav

Video

.mp4, .m4v
.wmv
.mov
.avi
.ogv
.mpg
.3g2
.3gp

Security is the main factor if you see on the back of limitation. By the way, it’s not mean you cannot remove these limitations. Just use a code and get rid of “this file type is not allowed. please try another” error. Just add the below code in your function.php.

For this purpose first access wp-config.php and place the below code.

define ( 'ALLOW_UNFILTERED_UPLOADS', true );

You can allow SVG files and Adobe Photoshop extension types by placing this code in the function.php.

function my_myme_types($mime_types){
    $mime_types['svg'] = 'image/svg+xml'; //Adding svg extension
    $mime_types['psd'] = 'image/vnd.adobe.photoshop'; //Adding photoshop files
    return $mime_types;
}
add_filter('upload_mimes', 'my_myme_types', 1, 1);

uploaded-file-wordpress

We hope you remove the error by following this post. Don’t forget to subscribe our blog for future posts. If you want to increase font size in WordPress.

Lastly, you have read about the method to upload additional file types in WordPress. Now read some supporting article for your favor.

Supporting Articles

How To Add RSS Feed To Google Newsstand?

How To Disable RSS Feeds From WordPress?

Stop Using Feedburner and Feedburner Alternatives

Show More

Global Blurb Team

“Global Blurb since 2015” Global Blurb providing information about SEO, Beauty, Health & Fitness, Interior designing, Fashion and ways of earning online without investing a penny. The blog designed to share ideas about different topics.

Want to contribute