Upload the file small ok, big bit can not pass, display (failed) net::err_connection_reset

Source: Internet
Author: User
Tags form post

I'm pretty sure I've modified the file upload limit in php.ini and the file permissions are writable. Modify PHP.inifile_uploads = on; switch to allow uploading of files over HTTP. The default is on, which is openupload_tmp_dir; file upload to the server where temporary files are stored, if not specified will be used the system default temporary folder (Moodle can not change)upload_max_filesize = 8m; Allows the maximum size of the uploaded file.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 8Mafter setting the four parameters above, uploading files less than 8M is generally not a problem. But if you upload a file larger than 8M, you only have to set the following parameters:in the resource Limits area:max_execution_time = +;max_input_time = 600; maximum time value per php page (seconds), default 30 secondsmemory_limit = 8m; The maximum amount of time each PHP page takes to receive data, default 60 seconds The maximum memory eaten by each PHP page, default 8M
File_uploads = on;

Upload_tmp_dir =/tmp

Upload_max_filesize = 8m

Post_max_size = 8m

Max_execution_time = 600

Max_input_time = 600

Memory_limit = 128m


If the uploaded file does not reach the size set in php.ini, it is likely that there is a limit to the file in ApacheModify the httpd.conf in the APAHCE directoryAdd the following:limitrequestbody 10485760that is 10m=10*1024*1024, restart Apache
10485760

 

Upload the file small ok, big bit can not pass, display (failed) net::err_connection_reset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.