Upload any type of file to the WordPress library

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,
Good work!

Facebook
Twitter
LinkedIn
Reddit
Print
Email

Questions or ideas?

Your email address will not be published. Required fields are marked *

Easy Green Hosting

optional plans

micro - mini - maxi

MICRO – €28/year

GREEN WORDPRESS

  • con 2 GB of total space
  • without email boxes

Click here to purchase

MINI – €33/year

GREEN CPANEL

  • con 3 GB of total space, 1 site
  • 1 email inbox

Click here to purchase

MAXI

GREEN CPANEL PRO

  • more than 50 GB of overall space
  • more than 25 email accounts

Per info, get in contact

YOU WILL SEE THE DISCOUNTED PRICE
AT THE END OF THE PURCHASE PROCESS




Or..

Leave your contact.

Leave us your contact details to receive upcoming special offers

Spirit of the World – Blue

Spiritus Mundi has already completed the planting of thousands of trees, creating real urban forests.

Since the beginning of summer 2021, we have financed the planting of 80 trees in the Bosco Vivo di Legnaro.

EnvironmentWater – Lombardy

With Ambiente acqua we gave life to the planting project of the Parco Est delle Cave, with a first planting in October 2021 of 101 trees.

Treedom

Our very first commitment to reforestation begins with Treedom, with which we financed the planting of 60 trees at the beginning of 2021.

DEMO CPANEL

Explore the dashboard
n.1 in the world