I can’t upload .json file after updating WordPress
-
I can’t upload a .json file to my media library anymore after updating WordPress. It was working fine before
I haven’t added any new plugins/themes/etc
Here’s the code in my functions.php file:
add_filter('upload_mimes', 'enable_extended_upload'); function enable_extended_upload ( $mime_types =array() ) { // The MIME types listed here will be allowed in the media library. // You can add as many MIME types as you want. $mime_types['zip'] = 'application/zip'; $mime_types['json'] = 'application/json'; return $mime_types; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘I can’t upload .json file after updating WordPress’ is closed to new replies.