No error when uploading a really big file in PHP?

后端 未结 6 774
说谎
说谎 2021-02-06 18:14

I have a PHP form for uploading files and it works fine and displays an error message if something went wrong. This is all good.

The problem is when I test with a really

6条回答
  •  情深已故
    2021-02-06 18:42

    apart form the options as the former users answered:

    max upload filesize (upload_max_filesize)
    max post data size (post_max_size)
    memory limit (memory_limit)
    

    there is also one, when the file is very large, or the line is busy, there need to much time to execute this operation, which will hit to ceil of the script execution limit.

    max_execution_time
    

提交回复
热议问题