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
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.
cd /www/wdlinux/nginx/conf/ vim nginx.conf
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.