Two solutions to PHP upload file size limit

WBOY
Release: 2016-07-25 08:54:53
Original
1038 people have browsed it
  1. upload_max_filesize = 8M
  2. post_max_size = 10M
  3. memory_limit = 20M
Copy the code

In addition, make sure there is no line similar to the following in the uploaded

: This is also used to limit the upload size.

Second: If it is apache 2, it needs to be modified /etc/httpd/conf.d/php.conf Change the LimitRequestBody 524288 in 524288 (=512×1024) to a larger size, such as 5M (=5×1024×1024) In this way, the above problems will not occur when uploading. The upload does not respond. When uploading files, it is displayed that the page is unrealistic and can be solved.



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template