• Jaso

    (@subwebsites)


    Hi,

    May I kindly ask, what would the code be to allow .json files for upload?

    Thank You
    JB

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kimipooh

    (@kimipooh)

    Thank you for using my plugin!

    Please try to set the following value on the setting menu.
    json = application/json

    Plugin Author kimipooh

    (@kimipooh)

    If you want to pass the mime type check by WordPress, you had better set the value is the follows;

    json = text/plain

    If you want to know the value of the mime type by WordPress;

    For macOS
    1. Download check_finfo_file.php (https://github.com/kimipooh/wp-add-mime-types/blob/master/tools/check_finfo_file.php) to the Downloads folder.
    2. Open Terminal app.
    3. cd $HOME/Downloads
    4. php check_finfo_file.php URL or File_path.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Allow .json files’ is closed to new replies.