Resolving KindEditor Image Upload Size Limits by Adjusting php.ini and upload_json.php

This article explains how to fix KindEditor image upload errors caused by PHP's upload size restrictions by modifying the php.ini upload_max_filesize setting and increasing the $max_size value in KindEditor's upload_json.php file.

php Courses
php Courses
php Courses
Resolving KindEditor Image Upload Size Limits by Adjusting php.ini and upload_json.php

In this tutorial the author describes encountering an error when uploading large images with the KindEditor WYSIWYG editor, where PHP reports that the uploaded file exceeds the size allowed by php.ini.

The fix begins by locating the active php.ini file (e.g., via a simple <?php echo phpinfo(); ?> script) and increasing the upload_max_filesize directive to a larger value, then restarting the server.

After adjusting php.ini the error still appears, which turns out to be caused by KindEditor’s own upload limit defined in upload_json.php. By editing that file and changing the $max_size = 1000000; setting to a higher number, the restriction is removed.

Following these two configuration changes, image uploads larger than the original limit succeed without further server restarts.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Backend DevelopmentKindEditorphp-iniupload limit
php Courses
Written by

php Courses

php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.