Thinkphp file upload size limit

Source: Internet
Author: User
Thinkphp file upload size limit I use thinkphp to upload files
$ Upload-> maxSize = 10000000000
In php. ini, change
Upload_max_filesize = 500 M
Post_max_size = 500 M
Memory_limit = 512 M
Max_execution_time= 600
But still prompts
The uploaded file exceeds the limit of the upload_max_filesize option in php. ini!
Why?

Guangzhou bee 10:46:01
There are two Error messages:
The uploaded file exceeds the limit of the upload_max_filesize option in php. ini!
Second
No files uploaded!


Reply to discussion (solution)

Have you restarted Apache ??

$ Upload-> maxSize = 10000000000
Echo 10000000000/1024/1024; // 9536.7431640625
That is, 9536 M, apparently exceeds upload_max_filesize = 500 M

Reply to the second floor and restart
But I found the cause of the error because php is directly changed in wamp. ini: php. ini does not work. what really limits is the latter. After I change the latter, I can.

Reply to the third floor. you can also say this, but I found the specific cause of the error and said it above. thank you for answering my questions.

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.