Baidu Editor Ueditor is developed by the Baidu Web front-end research and development department to see the Rich Text Web editor, with a lightweight, customizable, pay attention to user experience and other characteristics, open source based on the MIT protocol, allow free use and modify code, so by many open-minded people favor. But sometimes we are quoted in the Baidu editor will encounter in the upload of large-capacity video report HTTP request error, then encounter this situation should be how to solve it?
First, the iis+php environment to solve the method
1. PHP.ini Related Settings
Open PHP.ini, first find
File_uploads = on; switch to allow uploading of files over HTTP. The default is on, which is open
Upload_tmp_dir; files uploaded to the server where temporary files are stored, if not specified, will use the system default temporary folder
Upload_max_filesize = 8m; Hope business, that is, the maximum size allowed to upload files. Default is 2M
Post_max_size = 8m; The maximum value that can be received by the form Post to PHP, including all values in the form. Default is 8M
Generally, after setting the above four parameters, uploading <=8m files is not a problem, in the network normal situation.
However, if you want to upload a large volume of >8m files, only set the above four items will certainly be able to pass.
Further configure the following parameters
Max_execution_time = 600; maximum time value per php page (seconds), default 30 seconds
Max_input_time = 600; The maximum time required for each PHP page to receive data, default 60 seconds
Memory_limit = 8m; max memory consumed per PHP page, default 8M
After modifying the above parameters, it is possible to upload large volume files under normal conditions allowed by the network.
Max_execution_time = 600
Max_input_time = 600
Memory_limit = 32m
File_uploads = On
Upload_tmp_dir =/tmp
Upload_max_filesize = 100m
Post_max_size = 100m
Note: The above parameters cannot be empty, especially for temporary directories such as C:/temp
Note: Permissions can be set to everyone
2, modify the corresponding Ueditor\php\config.json Editor folder in the configuration file Config.json in which to find "videomaxsize": 1024000000,/* Upload size limit, Unit B, default 1GBB */ This is my modified parameters;
3. Modify the automatically generated Web. config file under the root directory and add it under the system.webserver node:
<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "1000000000"/>
</requestFiltering>
</security>
Such as:
Second, the iis+asp environment solution
1, modify the corresponding Ueditor\asp\config.json Editor folder in the configuration file Config.json in which to find "videomaxsize": 1024000000,/* Upload size limit, Unit B, default 1GBB */ This is the parameter I modified.
2, first modify the IIS server management interface in the ASP (configure ASP Application properties) option, "behavior"-Enable parent path-need to right default false to True, and then in "Limit properties" in the "Maximum request entity principal limit" Change the default size byte number to the size you want to set, and click "Apply" in the upper right corner.
3. Modify the automatically generated Web. config file under the root directory and add it under the system.webserver node:
<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "1000000000"/>
</requestFiltering>
</security>
Such as:
The above is to solve the Baidu editor Ueditor upload large-Capacity video report HTTP request Error method, if you use other open language or environment to solve the idea is similar.
Baidu editor Upload Big video report HTTP request error what to do