Title: Cannot upload json file
Last modified: October 28, 2021

---

# Cannot upload json file

 *  [jacktrinh](https://wordpress.org/support/users/jacktrinh/)
 * (@jacktrinh)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cannot-upload-json-file/)
 * I tried to upload a json file using the shortcut in a page [wordpress_file_upload]
   but it was not successfully. It notified the file cannot be uploaded. Other file
   type is ok.
 * So can you please help me to solve this problem. I am a developer myself, I tried
   to use below code:
    function my_mime_types($mimes) { $mimes[‘json’] = ‘text/plain’;
   return $mimes; } add_filter(‘upload_mimes’, ‘my_mime_types’);
 * then I tried to upload json file in media successfully but still not ok for the
   upload using shortcut [wordpress_file_upload]
 * Can you please help to fix this problem?
    Thanks a lot.

The topic ‘Cannot upload json file’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jacktrinh](https://wordpress.org/support/users/jacktrinh/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/cannot-upload-json-file/)
 * Status: not resolved