thinkphp File Upload size limit

Source: Internet
Author: User
I'm uploading files with thinkphp.
$upload->maxsize =10000000000
Then, in php.ini, change to
Upload_max_filesize = 500M
Post_max_size = 500M
Memory_limit = 512M
Max_execution_time = 600
But it's still a hint.
The uploaded file exceeds the value of the Upload_max_filesize option limit in php.ini!
Excuse me, what is it?

Guangzhou Bee 2015/12/3 10:46:01
There are two kinds of error hints, one is
The uploaded file exceeds the value of the Upload_max_filesize option limit in php.ini!
Second,
No uploaded files!


Reply to discussion (solution)

Have you ever rebooted Apache??

$upload->maxsize =10000000000
Echo 10000000000/1024/1024; 9536.7431640625
That is 9536M, apparently over upload_max_filesize = 500M

Back to the 2 floor, restarted.
But I found the wrong reason, because the wamp directly to change the php.ini in the PHP folder php.ini not work, the real limit is the latter, I changed the latter can be

Reply to the third floor, you said this is a bit, but the specific cause of the error I found, in the above said, or thank you to answer my question

  • 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.