Solution to the error of uploading large files in the ueditor Editor under the WDCP panel

Time:2020-6-9

Due to the actual needs, there are many attachments above 20m that need to be uploaded. The website is developed using ThinkPHP, and the rich text editor uses ueditor. Here are a few places that need to be modified.

Configuration of ueditor

open config.json Modify the maxsize in the file

Configure in WDCP panel php.ini

Solution to the error of uploading large files in the ueditor Editor under the WDCP panel
I found that many friends asked me that the above two steps were not effective. At that time, I couldn’t help but think about it. After testing, I found that when the file was uploaded to about 8m, something went wrong. Through the debugging tool of Chrome browser, it is found that the error is willing to be 413equest entity too large. So I think that the web engine of WDCP is Apache + nginx, and there is a lack of nginx configuration.

Configure nginx

cd /www/wdlinux/nginx/conf/
vim nginx.conf

Modify the

client_max_body_size 8m;

client_ max_ body_ Size is the maximum number of single file bytes that clients are allowed to request. Remember to restart the web service, and then the problem is solved.

Recommended Today

Get the value of transform offset by regularization

Offsetwidth gets the width of the elementOffsetleft gets the element positioning offset valueWhen an element is offset by transform (translatex: 100px) in CSS3, offset left cannot be used to get the offset valueterms of settlement: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> <style> .box{ width: 200px; height: 200px; background-color: red; } </style> </head> <body> […]