PHP - Maximum Total Upload Size?

后端 未结 10 1591
说谎
说谎 2020-12-09 13:58

I have a php web page with 15 fields. The user will use it to upload images. I tested this by uploading 15 jpg images, each about 2 M, without any problems. On the day I

10条回答
  •  庸人自扰
    2020-12-09 14:16

    Yes. There are (as far as I can remember) three or so configuration settings which will affect upload size restrictions:

    • upload_max_filesize, which sets an upper limit on the size of uploaded files
    • post_max_size, which limits the total size of posted data, including file data
    • max_input_time, which restricts the length of time the script is allowed to process input data, including posted values

    upload_max_filesize is a limit on each individual file; however, post_max_size is an upper limit on the entire request, which includes all the uploaded files.

    Different hosting environments will have these values set differently, which may affect your abilities upon deployment.

提交回复
热议问题