WordPress by default does not allow the uploading of any type of file to the media library, for both security and compilation reasons. On this page there is a list of allowed files.
In fact, the media library reprocesses all the data it receives and categorizes it according to the meta-data contained in each file.
But what to do if you want to add an unauthorized file, such as an SVG or with any other type of unauthorized extension?
To remove the block, you will need to add a line of code in the wp-config.php file
The line to add is: define( 'ALLOW_UNFILTERED_UPLOADS', true );
To modify wp-config.php we have two ways:
1. via the cpanel file manager
2. via the file manager of the wordpress plugin “WP File Manager”
In the first case, simply click on the "File Manager" icon and enter the public_html folder or the folder of the additional domain that interests us - select the wp-config.php file - right click: "edit" - add define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); at the end of the file.
However, if you do not have access to the cpanel, you can install the plugin WP FIle Manager which will give the possibility to carry out the same procedure in a very similar way, but directly from your WordPress control panel.
That's all for today,