Trying to add a custom font in WordPress. Get a sorry, this file type is not permitted for security reasons error.

Stupid fix is to pay for a premium plugin to allow configuration of MIME upload types. No thanks bro!

Simpler fix, temporarily edit the wp-config file, by adding this statement.


Upload the font file. Or whatever.

Then delete (or comment out) the define statement. Important. Don’t leave it in, uploads are filtered for a reason!