unable to upload json file to media library
-
Although I have added “json” in allowed file types in network settings, if I login as network admin, I cannot publish json files in the media library, unless if I also set “define( ‘ALLOW_UNFILTERED_UPLOADS’, true );” in wp-config.php, which I would like to avoid for security reasons.
Also, if I login as a user with only “Administrator” role, I cannot publish json files in the media library, even if I also set “define( ‘ALLOW_UNFILTERED_UPLOADS’, true );” in wp-config.php.
I also tried by adding the “json” mime type using the “mime_types” filter, but it does not work either.
Please advise on how to allow upload of json files in media library for users with “administrator” role.
- The topic ‘unable to upload json file to media library’ is closed to new replies.