ææÑÏÈÑíÓ WordPress ÌÓæä JSON Íá ãÔßáÉ you are not allowed to upload this file type
How to Upload JSON File to WordPress? [2023]
Allow .json upload file in WordPress
How To Allow JSON File Uploads In WordPress
How to Upload JSON to WordPress - wordpress .json” has failed to upload.
How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” Error in WordPress
How to Fix the Invalid JSON Error in WordPress



ÓÈÈ ÇáãÔßáÉ :

áÇ íæÌÏ ãÔßáÉ äåÇÆíÇ ÈãæÞÚß , áßä ÇáææÑÏÈÑíÓ ÈÔßá ÇÝÊÑÇÖì áÇ ÊÞÈá ÑÝÚ ãáÝÇÊ json
áÇäåÇ ÛíÑ ÔÇÆÚ ÇÓÊÎÏÇãåÇ æßÐáß íãßä ãä ÎáÇáåÇ ÑÝå ãáÝÇÊ ÈåÇ ÇßæÏ ÊÖÑ ÈãæÞÚß
áÐáß åì ãÚØáå ÈÔßá ÇÝÊÑÇÖì.

Go to “Media > Library” section in your WordPress admin panel and try to upload a .json file. You will see an error mentioning, “Sorry, you are not allowed to upload this file type”. WordPress restricts uploading certain file types like SVG and JSON due to security reasons. As these are text files, the uploader can easily add malicious code in the file to harm your site. However, sometimes you may create the JSON file yourself or know the file is from clean source. In these cases, you can manually enable JSON upload either for processing the file or allow users to download from the frontend.

When uploading a file, WordPress checks its MIME type to allow or restrict the upload. WordPress has a list of allowed file types as listed in this official codex documentation and .json is not the allowed format. So, you have to manually add the MIME type for JSON for allowing the file uploads through admin panel. Otherwise, you can directly upload the file on your server using FTP.

Íá ÇáãÔßáÉ :

Allow JSON Upload Using a Plugin

This is the best option to upload JSON files in your site.
Install and activate “WP Extra File Types” plugin on your site.



ÑÇÈØ ÇáÈáæÌä ãä åäÇ
https://wordpress.org/plugins/wp-extra-file-types/

ÈÚÏ ÇáÊËÈíÊ ÇÐåÈ Çáì settings Ëã Extra File Types



Ëã ÇÈÍË Úä json æÇÎÊÇÑå Ëã save
Ëã ÇÐåÈ Çáì media ÚÇÏì æÇÑÝÚ ÇáãáÝ



æáä íÞÇÈáß Çì ãÔßáÉ æÈÚÏ ÇáÇäÊåÇÁ ääÕÍ ÈÊÚØíá åÐå plugin áãÒíÏ ãä ÇáÇãÇä
áÊÝÇÏí ÇÍÊãÇáíÉ ÑÝÚ ãáÝ ÌÓæä Èå ßæÏ ÊÌÓÓ Çä íÒÑÚ Úáì ãæÞÚß

ãáÍæÙÉ :
ÞÏ íãßäß ÑÝÚ ÇáãáÝ ÇíÖÇ ãä ÎáÇá ÈÚÖ plugins / themes
ÇáÊì ÈåÇ import æ export ááÇÚÏÇÏÇÊ ÇáÎÇÕÉ ÈåÇ

æåäÇß ØÑÞ ÇÎÑí ãä ÎáÇá ÇßæÇÏ áÇ ääÕÍ ÈåÇ
áÇäå ÇáÈáæÌä ÇÓåá ÍíË ÈÚÏ ÇáÇäÊåÇÁ ãä ÑÝÚ ãáÝÇÊß ÊÓÊØíÚ ÊÚØíáå ÈãäÊåì ÇáÓåæáÉ

ÇáãÑÌÚ:
https://www.webnots.com/how-to-uploa...-in-wordpress/