How big can post_max_size be set?

Source: Internet
Author: User
What is the maximum value of post_max_size? Recently, when I was working on a project to upload resources, I wanted to upload large files. set max_execution_time = 600upload_max_filesize = 2048Mmax_input_time = 600 memo in ini. How big can post_max_size be set?
Recently, when I was working on a project to upload resources, I wanted to upload large files. so I set the following in php. ini:
Max_execution_time= 600
Upload_max_filesize = 2048 M
Max_input_time= 600
Memory_limit = 2048 M
Post_max_size = 2048 M
However, after the form is submitted, there is no response.
Finally, we found that $ _ FILE is NULL and has no value!
After that, we found that when it was set to post_max_size = 1536M, we could upload again normally!
Is there an upper limit on post_max_size? So what is the maximum size? (I seem to be 2 GB here)
If so, how can I upload a lot of G stuff?
Please give me some advice! I am going to look for a job after preparing for this project ...... I don't want to go after the Chinese New Year ......
Help me!

------ Solution --------------------
The size may not be limited, but you need to increase the latency and other parameters in addition to setting the size.

Therefore, large files are cut into several parts to be uploaded to the server and then combined to solve various strange problems...
------ Solution --------------------
2 GB post transmission
32-bit hosts are limited to 4 GB or less
64-bit 8 GB

You can also take a look at this description:
Note: PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga ). PHP will do the conversions automatically if you use any of these. be careful not to exceed the 32 bit signed integer limit (if you're using 32bit versions) as it will cause your script to fail.
------ Solution --------------------
Is it so big? Really? Really?
------ Solution --------------------
It can be set to very large. However, it is difficult to use such a large one. Depends on your needs and the affordability of your servers.
------ Solution --------------------
Although your file does not have 2 GB, it may be wrong to set 2 GB or more in the configuration file.
------ Solution --------------------
The upper limit of a positive number of signed long integers is 2 GB. the hexadecimal value is 0x80000000.
This may be the problem

In addition, several parameters should be coordinated.

Memory_limit> post_max_size> = upload_max_filesize
Upload_max_filesize <max_execution_time * Average network speed

Reasonable
According to your configuration
Max_execution_time= 600
Upload_max_filesize = 2048 M
Max_input_time= 600
Memory_limit = 2048 M
Post_max_size = 2048 M

The network speed is mb per second, and the upload time is 10 minutes.
No user will accept this situation

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.