The easiest way to enable any File type Uploads in WordPress/Divi.
In this tutorial, I am going to show you how you can enable Uploads of any kind of File Type (SVG, RAR and more…)or any other uploads that aren’t allowed by WordPress. Today we’re going to give the WordPress a command to enable other uploads easily with just one line of code.
So let’s get started with today’s tutorial. First of all, you’ll have to connect to your website files for that we’re going to use the File Manager plugin to access our WordPress files.
When you have access to your WordPress files you have to edit the wp-config.php file.
Right-click on wp-config.php and then click on Code editor.
Now go all the way down and paste this line of code there.
define( 'ALLOW_UNFILTERED_UPLOADS', true );
Now try to upload any file which is not allowed by WordPress and let me know in the comments if it helps you.
Thanks for coming…
NoteRemove the code after uploading your file because of Secuirty Reasons.
Written by : Samar Jamil
Get Freebies and new blog post notification straight in your inbox!