post_max_size
should be 3G
upload_max_filesize
should be 3G
memory_limit
depends!!! what you are going to do with the file. If you are going to manipulate the file or do other memory intensive jobs, then you will need to set a high limit. If you don't want to put a maximum limit, you can always set it to -1
. This value doesn't have to do much with the size of the file, but rather with the size of the physical memory your script needs to handle the job.
For the first two, it is the maximum file size you expect to be uploaded, suffixed with a short hand byte value. For KB
should be K
, MB
should be M
, GB
should be G
, ...
memory_limit
- I've read that it has to be set to larger value, if large files need to be uploaded, though, when testing, I saw that files are instantly saved to temporary directory (rather than memory), somemory_limit
was not a problem. – Plasticitypost_max_size
andupload_max_filesize
- I might be wrong, but they might be limited to 2GB on 32bit systems. This should be tested. If there is such limit, workaround would be disabling them completely. You might also be interested in configuringmax_input_time
, though I don't think that there should be problems because of it. – Plasticity