Add ALLOW_UNFILTERED_UPLOADS in config/application.php

In Wordpress I got the messsage:
Sorry, this file type is not permitted for security reasons.

It’s possible to add
in wp-config.php.

With Bedrock I have to put this snippet in config/application.php with forwarding Snippet in the Block “Custom Settings”
Config::define(‘ALLOW_UNFILTERED_UPLOADS’, true);
But, for reasons I don’t know it doesn’t work.

Do I have to announce the applications.php explicitly again? and if so, how?

Any additional Code like
will not used, even when it’s put inside before Installtion. I also put unside before
Config::define(‘WP_MEMORY_LIMIT’, ‘64M’ );

I don’t exactly know what the problem is, but adding any additional constants vs Config::define should work fine as you had:

Config::define(‘ALLOW_UNFILTERED_UPLOADS’, true);

If this isn’t working then it seems like something else is going on.

This topic was automatically closed after 42 days. New replies are no longer allowed.