PHP file upload affected or not by max_input_time?

后端 未结 4 2018
情歌与酒
情歌与酒 2020-12-13 09:55

I\'m looking into what is the best value to set for defaults in PHP. I\'ve seen many contradicting points about max_input_time.

This answer says that h

4条回答
  •  情歌与酒
    2020-12-13 10:18

    I did extensive study on max_input_time. Network transfer time is not a factor. PHP as Apache handler (mod_php) or Nginx/PHP-FPM -pair yielded similar results: PHP gets the uploaded file once the transfer is completed and web server hands the data over. On my tests 2 second max_input_time was enough to handle a 800 MiB upload.

    All the details are at http://blog.hqcodeshop.fi/archives/185-PHP-large-file-uploads.html

提交回复
热议问题